It make me sweat when asking me to change the Solaris Kernel Parameters. After some troublesome findings, I finally manage to change the kernel parameters at /etc/system and manage to get the oracle 9i installed and database created. If not, you will always get oracle error complaining "Out Of Memory". Remember, it is the kernel parameters' fault. Not your RAM, not your SWAP (because I have increase my RAM from 512Mb to 1Gb and SWAP from 500Mb to 1.5 Gb :D ).
After installing and created a database, you need to create at least a user.
To create a user :
- Login SQL*Plus with sqlplus "/ as sysdba".
- In SQL*Plus, type sql > create user user_name identified by user_password;.
- Grant some access for the user.
sql > grant connect to user_name;
sql > grant resource to user_name;
sql > grant create any snapshot to user_name;
After that, to access oracle from other workstation, you should start the oracle process first.
- In console, type cd /oracle/home/bin/.
- To start the oracle process, in console, type ./lsnrctl start.
- To start the database, in console, type ./dbstart.
And there you go! The very basic of oracle. :)
4 comments:
should we start db first or start listener first?
I don't understand what are you talking about:)
From the notes I have read, the order is to start listener, then only db. The funny thing that makes me puzzled is that to stop, we stop the listener first, then the db.
But from a view of a SuperSifu Mr. BB, Enterprise and Commercial usage of Oracle never shuts down.
In other attemp of restarting the oracle if it is down after restarting the server, you might need to start the database in sql*plus. The steps are:
1. type sqlplus "/ as sysdba"
2. SQL> startup open
it will show you that
Database mounted.
Database opened.
Or if you need to stop the database by:
1. type sqlplus "/ as sysdba"
2. SQL> shutdown immediate
it will show that
Database closed.
Database dismounted.
ORACLE instance shut down.
Post a Comment