Posts

Change Hostname in Oracle Solaris 11.3

In this post i will share how to change hostname in Solaris 11.3 , i never test this way on other version but regarding to Oracle it will be working without any issue.


as root user, list the current hostname using the below command :-
# svccfg -s system/identity:node listprop config config                                                         application
config/enable_mapping            boolean     true
config/ignore_dhcp_hostname boolean     false
config/loopback                        astring
config/nodename                      astring       solarisdb1

change hostname to new one# svccfg -s system/identity:node setprop config/nodename="solarisdbnew1"
Refresh and restart# svcadm refresh system/identity:node# svcadm restart system/identity:node

 Check the configuration# svccfg -s system/identity:node listprop config

 Thank you

Osama

Integrate Weblogic With Active Directory Using LDAPS

Image
In this post i will show how to integrate weblogic with active directory under LDAPS Port 636 and now using the 389, This is usually will work on different version of weblogic in my case i am using weblogic 12C.

I tried to make this article as simple as it's, since i faced different issue during this and couldn't find any articles or Oracle Support document that related to any of the issue i faced so i am writing this blog to share it and could be useful for people.

Weblogic Server comes with an Embedded LDAP Server which acts as the Default Provider for authentication, authorization and role mapping .Since authentication is based on JAAS ( Java Authentication and Authorization Service), we can have external providers as well one of these external provider is Active directory authentication. 

Important note :- Before start any of these steps you should ask your system administrator to create active directory user the purpose of this use only to read active directory informatio…

Where is the DBA in the DevOps tools ?

Image
Database administrator job has been changed and it's not like before any more, In the past The DBA responsibility was limited within database which mean troubleshooting, backup , Performance tuning, high availability .. etc after few years new layer has been added to the responsibility which is application server layer for example weblogic ,Oracle embedded the weblogic with most of their products such as enterprise manager cloud, E-business suits, as i remember after three years another layer added to DBA knowledge which is virtualization and regarding to this virtualization  made the DBA life more easier and not like before, solution providing another layer of backup and server management.

However now everything has been changed and the market working under new term which is CLOUD including different vendor AWS, Azure, and Oracle, As DBA your knowledge shouldn't stop by only Database, within cloud there is new tools that can help the DBA with their daily Job and it's call…

Error: Server refused our key or No supported authentication methods available

If you use PuTTY to connect to your instance and get either of the following errors, Error: Server refused our key or Error: No supported authentication methods available, verify that you are connecting with the appropriate user name for your AMI. Enter the user name in the User name box in the PuTTY Configuration window.

The appropriate user names are as follows:


For an Amazon Linux AMI, the user name is ec2-user.For a RHEL AMI, the user name is ec2-user or root.For an Ubuntu AMI, the user name is ubuntu or root.For a Centos AMI, the user name is centos.For a Fedora AMI, the user name is ec2-user.For SUSE, the user name is ec2-user or root.Otherwise, if ec2-user and root don't work, check with the AMI provider.

Thanks
Osama

Out Of memory , Not Enough Space Solaris 11

SQL> startup mount ;
ORA-27102: out of memory
SVR4 Error: 12: Not enough space
Additional information: 1671
Additional information: 16106127360
Additional information: 64424509440
The Above error appeared When trying to start Oracle 12c on Solaris 11.3, this is published bug 
Bug:20635316 - 12C DATABASE INSTANCE STARTUP FAILS WITH ORA-27102: OUT OF MEMORY
Solaris using something called OSM , Optimized Shared memory You can know more about it here 
To avoid this error as workaround just set the parameter
_use_osm=FALSE

Thanks Osama

Configure AWS Command Line Interface

Image
In this lesson i will show you how to configure AWS command line, and how to start working with your AWS account thru command line with very simple and basic steps :-


First of i will assume that you don't have any user or group in your AWS consolefrom the AWS Console :-

From IAM ( Identity access management ) Choose Group Create Group with permission Administrator access and then hit create.
create user and add that user to the group in my case the group name shown above, save the secret key and access ID as CSV. Now from this link here, Download AWS Command Line Interface depend on your operating system and open cmd , terminal ... etc.Now from Dos enter AWS configure and fill the information like the below:-
Open the command line and test if it's connected to AWS now.
You can learn more about the command line from AWS documentation , if you recive the following error 
"Could not connect to the endpoint URL: "https://s3.london.amazonaws.com/"
Then make sure you are …

failed to associate the token : AWS

Image
Once you create AWS you should activate "Activate MFA on your root account" 



and do that you should use your phone (Iphone, Android) download google authenticator app from the app store/Google Play once the installation is done Scan the QR and Enter the code, the code will be change automatically, if the first try not working and you receive this error " failed to associate the token" uninstall the app and try again.

Thank you
Osama