SHUTDOWN
STARTUP MOUNT
ALTER DATABASE RENAME FILE 'oldpath' TO 'newfile path';
ALTER DATABASE OPEN;
delete older file
Linux administration , Unix administration , Vmware Vsphere administration , Oracle DBA ,apache, backup, dhcp, dns, kvm, xen, kernel, ldap, kvm, monitoring, ticketing, networking, Mail servers, SAN,troubleshooting
Labels
- Amanda (2)
- Ansible (2)
- Answer these Questions (2)
- antivirus (2)
- apache (3)
- Bash (16)
- Chef (3)
- Citrix (2)
- clusters (2)
- Concept (22)
- DatabaseAdminstration (11)
- DevOps (1)
- dhcp (2)
- Downloads (3)
- ELK (1)
- ELK stack (1)
- encryption (1)
- Free trainings (1)
- Frequently Used Commands (46)
- FTP (1)
- git (1)
- gpg (2)
- Hardware (1)
- httpd (2)
- Interview Questions (53)
- iptables (1)
- IT NEWS (3)
- java (1)
- kibana (2)
- knife (1)
- KVM (2)
- linux (17)
- Linux installations (22)
- Linux Jobs (4)
- Linux Links (2)
- logstash (1)
- Mac (1)
- MediaWiki (1)
- MySql (2)
- Nagios (2)
- Networking (3)
- open Nebula (5)
- Open Source tools (12)
- OpenNMS (1)
- openSSL (1)
- Oracle on Linux (5)
- Performance Monitoring (1)
- php (1)
- postfix (1)
- postgres (1)
- postgres-XL (1)
- Product Reviews (1)
- Python (2)
- rssh (1)
- Samba (2)
- Scripting (16)
- security (4)
- selinux (1)
- Server (1)
- SFTP (1)
- Social Awareness (1)
- Solaris (1)
- SSL (1)
- svn (1)
- TCP/IP (1)
- Technology (1)
- Tips and Tricks (32)
- Training and materials (8)
- Troubleshooting (6)
- Ubuntu (18)
- unix (1)
- virtualization (17)
- Vmware (25)
- Vyatta (1)
- windows7 (1)
- xml (1)
Showing posts with label Oracle on Linux. Show all posts
Showing posts with label Oracle on Linux. Show all posts
Steps to start the multiple listener in Oracle
$lsnrctl
LSNRCTL>set current DEMO
LSNRCTL> start
LSNRCTL> set current PROD
LSNRCTL> start
LSNRCTL>set current DEMO
LSNRCTL> start
LSNRCTL> set current PROD
LSNRCTL> start
What is SGA
The SGA is a chunk of memory that is allocated by an Oracle Instance during the nomount stage and is shared among Oracle processes, hence the name. It contains all sorts of information about the instance and the database that is needed to operate.
The SGA consists of the following four (five if MTS) parts:
* Fixed Portion
* Variable Portion
* Shared pool
* java pool
Fixed portion
The size of the fixed portion is constant for a release and a plattform of Oracle, that is, it cannot be changed through any means such as altering the initialization parameters
Variable portion
The variable portion is called variable because its size (measured in bytes) can be changed.The variable portion consists of:
* large pool which provides working space for rman (although rman will also work without large pool).
* Shared pool used for objects that are shared among all users.
The shared pool can further be subdivied into:
o Control structures
o Character sets
o Dictionary cache
The dictionary cache stores parts fo the data dictionary because Oracle has to query the data dictionary very often as it is fundamental to the functioning of Oracle.
o Library cache
The library cache is further divided into
+ Shared SQL Area,
+ PL/SQL Procedures and
+ Control Structures (Latches and Locks).
The size of the Shared Pool is essentially governed by the initialization parameter shared_pool_ size (although shared_pool_ size is usually smaller than the size of the shared pool, see here) and db_block_buffers (which plays a role for this size because the database buffer cache must be administered. )
The size for the variable portion is roughly equal to the result of the following statement:
select sum(bytes) from
v$sgastat where
pool in ('shared pool', 'java pool', 'large pool');
Redo log buffer
Redo Buffers is roughly equal to the parameter log_buffer
Database buffer cache
It's size is equal to db_block_size * db_block_buffers.
db_block_buffers is deprecated as of 9i, so if the init parameter db_cache_size) is set, the buffer cache's size will be set according to this value.
UGA
If the instance is running in MTS mode, there'se also a UGA: user global area
You can use v$sga to show the amount of these sizes or alternatively use SHOW SGA in sql*plus.
The following initialization parameters affect the size of the SGA:
* db_block_buffers,
* db_block_size,
* db_cache_size,
* db_keep_cache_ size,
* db_recycle_cache_ size,
* java_pool_size.
* large_pool_size,
* log_buffer,
* shared_pool_ size,
* streams_pool_ size,
The amount of SGA that a user can use can be limitted through profiles. Use the private_sga option in the create profile statement.
Dynamic SGA allows to change the size of the buffer cache, the large pool, the shared pool and the process private memory on the fly, that is without shutting down the instance.
The x$ tables are an sql interface to the SGA and allow to peek into the SGA.Notably, x$ksmmem seems to allow to address every byte in the SGA.
The SGA consists of the following four (five if MTS) parts:
* Fixed Portion
* Variable Portion
* Shared pool
* java pool
Fixed portion
The size of the fixed portion is constant for a release and a plattform of Oracle, that is, it cannot be changed through any means such as altering the initialization parameters
Variable portion
The variable portion is called variable because its size (measured in bytes) can be changed.The variable portion consists of:
* large pool which provides working space for rman (although rman will also work without large pool).
* Shared pool used for objects that are shared among all users.
The shared pool can further be subdivied into:
o Control structures
o Character sets
o Dictionary cache
The dictionary cache stores parts fo the data dictionary because Oracle has to query the data dictionary very often as it is fundamental to the functioning of Oracle.
o Library cache
The library cache is further divided into
+ Shared SQL Area,
+ PL/SQL Procedures and
+ Control Structures (Latches and Locks).
The size of the Shared Pool is essentially governed by the initialization parameter shared_pool_ size (although shared_pool_ size is usually smaller than the size of the shared pool, see here) and db_block_buffers (which plays a role for this size because the database buffer cache must be administered. )
The size for the variable portion is roughly equal to the result of the following statement:
select sum(bytes) from
v$sgastat where
pool in ('shared pool', 'java pool', 'large pool');
Redo log buffer
Redo Buffers is roughly equal to the parameter log_buffer
Database buffer cache
It's size is equal to db_block_size * db_block_buffers.
db_block_buffers is deprecated as of 9i, so if the init parameter db_cache_size) is set, the buffer cache's size will be set according to this value.
UGA
If the instance is running in MTS mode, there'se also a UGA: user global area
You can use v$sga to show the amount of these sizes or alternatively use SHOW SGA in sql*plus.
The following initialization parameters affect the size of the SGA:
* db_block_buffers,
* db_block_size,
* db_cache_size,
* db_keep_cache_ size,
* db_recycle_cache_ size,
* java_pool_size.
* large_pool_size,
* log_buffer,
* shared_pool_ size,
* streams_pool_ size,
The amount of SGA that a user can use can be limitted through profiles. Use the private_sga option in the create profile statement.
Dynamic SGA allows to change the size of the buffer cache, the large pool, the shared pool and the process private memory on the fly, that is without shutting down the instance.
The x$ tables are an sql interface to the SGA and allow to peek into the SGA.Notably, x$ksmmem seems to allow to address every byte in the SGA.
DBA interview Questions
Here are some commonly asked DBA Interview Questions
1. How many memory layers are in the shared pool?
2. How do you find out from the RMAN catalog if a particular archive
log has been backed-up?
3. How can you tell how much space is left on a given file system and
how much space each of the file system’s subdirectories take-up?
4. Define the SGA and:
• How you would configure SGA for a mid-sized OLTP environment?
• What is involved in tuning the SGA?
5. What is the cache hit ratio, what impact does it have on
performance of an Oracle database and what is involved in tuning it?
6. Other than making use of the statspack utility, what would you
check when you are monitoring or running a health check on an Oracle
8i or 9i database?
7. How do you tell what your machine name is and what is its IP address?
8. How would you go about verifying the network name that the
local_listener is currently using?
9. You have 4 instances running on the same UNIX box. How can you
determine which shared memory and semaphores are associated with which
instance?
10. What view(s) do you use to associate a user’s SQLPLUS session with
his o/s process?
11. What is the recommended interval at which to run statspack
snapshots, and why?
12. What spfile/init. ora file parameter exists to force the CBO to
make the execution path of a given statement use an index, even if the
index scan may appear to be calculated as more costly?
13. Assuming today is Monday, how would you use the DBMS_JOB package
to schedule the execution of a given procedure owned by SCOTT to start
Wednesday at 9AM and to run subsequently every other day at
2AM.
14. How would you edit your CRONTAB to schedule the running of
/test/test.sh to run every other day at 2PM?
15. What do the 9i dbms_standard. sql_txt() and
dbms_standard. sql_text( ) procedures do?
16. In which dictionary table or view would you look to determine at
which time a snapshot or MVIEW last successfully refreshed?
17. How would you best determine why your MVIEW couldn’t FAST REFRESH?
18. How does propagation differ between Advanced Replication and
Snapshot Replication (read-only)?
19. Which dictionary view(s) would you first look at to
understand or get a high-level idea of a given Advanced Replication
environment?
20. How would you begin to troubleshoot an ORA-3113 error?
21. Which dictionary tables and/or views would you look at to diagnose
a locking issue?
22. An automatic job running via DBMS_JOB has failed. Knowing only
that “it’s failed”, how do you approach troubleshooting this issue?
23. How would you extract DDL of a table without using a GUI tool?
24. You’re getting high “busy buffer waits” - how can you find what’s
causing it?
25. What query tells you how much space a tablespace named “test” is
taking up, and how much space is remaining?
26. Database is hung. Old and new user connections alike hang on
impact. What do you do? Your SYS SQLPLUS session IS able to connect.
27. Database crashes. Corruption is found scattered among the file
system neither of your doing nor of Oracle’s. What database recovery
options are available? Database is in archive log mode.
28. Illustrate how to determine the amount of physical CPUs a Unix Box
possesses (LINUX and/or Solaris).
29. How do you increase the OS limitation for open files (LINUX and/or
Solaris)?
30. Provide an example of a shell script which logs into SQLPLUS as
SYS, determines the current date, changes the date format to include
minutes & seconds, issues a drop table command, displays the date
again, and finally exits.
31. Explain how you would restore a database using RMAN to Point in Time?
32. How does Oracle guarantee data integrity of data changes?
33. Which environment variables are absolutely critical in order to
run the OUI?
34. What SQL query from v$session can you run to show how many
sessions are logged in as a particular user account?
35. Why does Oracle not permit the use of PCTUSED with indexes?
36. What would you use to improve performance on an insert statement
that places millions of rows into that table?
37. What would you do with an “in-doubt” distributed transaction?
38. What are the commands you’d issue to show the explain plan for
“select * from dual”?
39. In what script is “snap$” created? In what script is
the “scott/tiger” schema created?
40. If you’re unsure in which script a sys or system-owned object is
created, but you know it’s in a script from a specific directory, what
UNIX command from that directory structure can you run to find your
answer?
41. How would you configure your networking files to connect to a
database by the name of DSS which resides in domain icallinc.com?
42. You create a private database link and upon
connection, fails with: ORA-2085: connects to . What is the problem?
How would you go about resolving this error?
43. I have my backup RMAN script called “backup_rman. sh”. I am on the
target database. My catalog username/password is rman/rman. My catalog
db is called rman. How would you run this shell script from the O/S
such that it would run as a background process?
44. Explain the concept of the DUAL table.
45. What are the ways tablespaces can be managed and how do they differ?
46. From the database level, how can you tell under which time zone a
database is operating?
47. What’s the benefit of “dbms_stats” over “analyze”?
48. Typically, where is the conventional directory structure chosen
for Oracle binaries to reside?
49. You have found corruption in a tablespace that contains static
tables that are part of a database that is in NOARCHIVE log mode. How
would you restore the tablespace without losing new data in the other
tablespaces?
50. How do you recover a datafile that has not been physically been
backed up since its creation and has been deleted. Provide syntax example.
1. How many memory layers are in the shared pool?
2. How do you find out from the RMAN catalog if a particular archive
log has been backed-up?
3. How can you tell how much space is left on a given file system and
how much space each of the file system’s subdirectories take-up?
4. Define the SGA and:
• How you would configure SGA for a mid-sized OLTP environment?
• What is involved in tuning the SGA?
5. What is the cache hit ratio, what impact does it have on
performance of an Oracle database and what is involved in tuning it?
6. Other than making use of the statspack utility, what would you
check when you are monitoring or running a health check on an Oracle
8i or 9i database?
7. How do you tell what your machine name is and what is its IP address?
8. How would you go about verifying the network name that the
local_listener is currently using?
9. You have 4 instances running on the same UNIX box. How can you
determine which shared memory and semaphores are associated with which
instance?
10. What view(s) do you use to associate a user’s SQLPLUS session with
his o/s process?
11. What is the recommended interval at which to run statspack
snapshots, and why?
12. What spfile/init. ora file parameter exists to force the CBO to
make the execution path of a given statement use an index, even if the
index scan may appear to be calculated as more costly?
13. Assuming today is Monday, how would you use the DBMS_JOB package
to schedule the execution of a given procedure owned by SCOTT to start
Wednesday at 9AM and to run subsequently every other day at
2AM.
14. How would you edit your CRONTAB to schedule the running of
/test/test.sh to run every other day at 2PM?
15. What do the 9i dbms_standard. sql_txt() and
dbms_standard. sql_text( ) procedures do?
16. In which dictionary table or view would you look to determine at
which time a snapshot or MVIEW last successfully refreshed?
17. How would you best determine why your MVIEW couldn’t FAST REFRESH?
18. How does propagation differ between Advanced Replication and
Snapshot Replication (read-only)?
19. Which dictionary view(s) would you first look at to
understand or get a high-level idea of a given Advanced Replication
environment?
20. How would you begin to troubleshoot an ORA-3113 error?
21. Which dictionary tables and/or views would you look at to diagnose
a locking issue?
22. An automatic job running via DBMS_JOB has failed. Knowing only
that “it’s failed”, how do you approach troubleshooting this issue?
23. How would you extract DDL of a table without using a GUI tool?
24. You’re getting high “busy buffer waits” - how can you find what’s
causing it?
25. What query tells you how much space a tablespace named “test” is
taking up, and how much space is remaining?
26. Database is hung. Old and new user connections alike hang on
impact. What do you do? Your SYS SQLPLUS session IS able to connect.
27. Database crashes. Corruption is found scattered among the file
system neither of your doing nor of Oracle’s. What database recovery
options are available? Database is in archive log mode.
28. Illustrate how to determine the amount of physical CPUs a Unix Box
possesses (LINUX and/or Solaris).
29. How do you increase the OS limitation for open files (LINUX and/or
Solaris)?
30. Provide an example of a shell script which logs into SQLPLUS as
SYS, determines the current date, changes the date format to include
minutes & seconds, issues a drop table command, displays the date
again, and finally exits.
31. Explain how you would restore a database using RMAN to Point in Time?
32. How does Oracle guarantee data integrity of data changes?
33. Which environment variables are absolutely critical in order to
run the OUI?
34. What SQL query from v$session can you run to show how many
sessions are logged in as a particular user account?
35. Why does Oracle not permit the use of PCTUSED with indexes?
36. What would you use to improve performance on an insert statement
that places millions of rows into that table?
37. What would you do with an “in-doubt” distributed transaction?
38. What are the commands you’d issue to show the explain plan for
“select * from dual”?
39. In what script is “snap$” created? In what script is
the “scott/tiger” schema created?
40. If you’re unsure in which script a sys or system-owned object is
created, but you know it’s in a script from a specific directory, what
UNIX command from that directory structure can you run to find your
answer?
41. How would you configure your networking files to connect to a
database by the name of DSS which resides in domain icallinc.com?
42. You create a private database link and upon
connection, fails with: ORA-2085: connects to . What is the problem?
How would you go about resolving this error?
43. I have my backup RMAN script called “backup_rman. sh”. I am on the
target database. My catalog username/password is rman/rman. My catalog
db is called rman. How would you run this shell script from the O/S
such that it would run as a background process?
44. Explain the concept of the DUAL table.
45. What are the ways tablespaces can be managed and how do they differ?
46. From the database level, how can you tell under which time zone a
database is operating?
47. What’s the benefit of “dbms_stats” over “analyze”?
48. Typically, where is the conventional directory structure chosen
for Oracle binaries to reside?
49. You have found corruption in a tablespace that contains static
tables that are part of a database that is in NOARCHIVE log mode. How
would you restore the tablespace without losing new data in the other
tablespaces?
50. How do you recover a datafile that has not been physically been
backed up since its creation and has been deleted. Provide syntax example.
Installing Oracle 9iR2 on RHEL4
> Version of Oracle certified for RHEL4 : 9.2.0.4
>
> Requirements for Installing Oracle 9iR2 on RHEL4
>
> Minimum Software Requirement:
>
> * Required OS Components
> - compat-db-4. 1.25-9
> - compat-gcc-32- 3.2.3-47. 3
> - compat-gcc-32- c++-3.2.3- 47.3
> - compat-oracle- rhel4-1.0- 3
> - compat-libcwait- 2.0-1
> - compat-libgcc- 296-2.96- 132.7.2
> - compat-libstdc+ +-296-2.96- 132.7.2
> - compat-libstdc+ +-33-3.2. 3-47.3
> - gnome-libs-1. 4.1.2.90- 44
> - gnome-libs-devel- 1.4.1.2.90- 44
> - libaio-devel- 0.3.102-1
> - libaio-0.3.102- 1
> - make-3.80-5
> - openmotif21- 2.1.30-11
> - xorg-x11-deprecated -libs-devel- 6.8.1-23. EL
> - xorg-x11-deprecated -libs-6.8. 1-23.EL
>
>
> The compat-oracle- rhel4-1.0- 3 and compat-libcwait- 2.0-1 packages are
available from Metalink Patch 4198954.
>
> Setting Oracle Environments
> As the oracle user execute the following commands:
>
> # Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9,
> # RHEL AS 3, and RHEL AS 4 !!
> # Use the "Linuxthreads with floating stacks" implementation
instead of NPTL:
> export LD_ASSUME_KERNEL= 2.4.19 # for RHEL AS 4
>
> # Oracle Environment
> export ORACLE_BASE= /u01/app/ oracle
> export ORACLE_HOME= $ORACLE_BASE/ product/9. 2.0
> export ORACLE_SID=test
> export ORACLE_TERM= xterm
> # export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not
in $ORACLE_HOME/ network/admin
> export NLS_LANG=AMERICAN;
> export ORA_NLS33=$ORACLE_ HOME/ocommon/ nls/admin/ data
> LD_LIBRARY_PATH= $ORACLE_HOME/ lib:/lib: /usr/lib
> LD_LIBRARY_PATH= $LD_LIBRARY_ PATH:/usr/ local/lib
> export LD_LIBRARY_PATH
>
> # Set shell search paths
> export PATH=$PATH:$ ORACLE_HOME/ bin
> Starting runInstaller
> su - oracle
>
> $ echo $LD_ASSUME_KERNEL
>
> 2.4.19
>
> $ ./runInstaller
>
> - Welcome Screen: Click Next
>
> - Inventory Location: Click OK
>
> - Unix Group Name: Use "oinstall" and click Next
>
>
>
> When asked to run /tmp/orainstRoot. sh, run it before you click Continue
>
>
>
> - File Locations: Use default values
>
> - Available Products: Select "Oracle9i Database 9.2.0.4.0"
>
> - Installation Types: Select Custom since we only want to install
the software for now
>
> - Available Products: Click Next or add some more components.
>
> - Components Locations: Accept default values and click Next
>
> - Privileged Operating System Groups:
>
> I used the default values: OSDBA Group =
dba, OSOPER Group = dba
>
> - Create database: Select NO since we first need to patch
Oracle database software!
>
> - Summary: Start the Install
>
>
>
>
>
> ** IF THE FOLLOWING ERROR IS ENCOUNTERED AFTER RUNNING RUNINSTALLER:
> [oracle@localhost Disk1]$ ./runInstaller -paramFile
'/tmp/oraparam. ini'
> [oracle@localhost Disk1]$ Initializing Java Virtual Machine from
/tmp/OraInstall2008 -03-25_11- 33-36AM/jre/ bin/java. Please wait...
> Error occurred during initialization of VM
> Unable to load native library:
/tmp/OraInstall2008 -03-25_11- 33-36AM/jre/ lib/i386/ libjava.so: symbol
__libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link
time reference · Refer to Metalink Note:264178. 1to download
the Patch 3006854 . - unzip p3006854_9204_ LINUX.zip
> - login as the root user
> - set your current directory to the directory where the patch is
located.
> - sh rhel3_pre_install. sh You do need root privileges to run the
last command line. After the Installation has completed: Patching
Oracle9i R2 (9.2.0.4) on RH AS 4 Download the patch 3948480 (Oracle9i
Patch Set Release 2 (9.2.0.6) Patch Set 5) from
http://metalink. oracle.com and execute the following commands:
>
> su - oracle
>
> $ cp p3948480_9206_ LINUX.zip /tmp
>
> $ cd /tmp
>
> $ unzip p3948480_9206_ LINUX.zip
>
> Archive: p3948480_9206_ LINUX.zip
>
> creating: Disk1/
>
> creating: Disk1/stage/
>
> creating: Disk1/stage/ Patches/
>
> ...
>
>
> Now download the patch 4188455 from http://metalink. oracle.com.
> This patch is needed for launching the runInstaller that came with
the patch 3948480 we just downloaded above.
>
> su - oracle
>
> $ cp p4188455_10103_ LINUX.zip /tmp
>
> $ cd /tmp
>
> $ unzip p4188455_10103_ LINUX.zip
>
> Archive: p4188455_10103_ LINUX.zip
>
> inflating: oraparam.ini
>
> inflating: README.txt
>
> $
> The /tmp/oraparam. ini file will now be used for launching the
runInstaller that came with the patch 3948480.
>
> To patch the runInstaller itself, run:
>
> su - oracle
>
> $ echo $LD_ASSUME_KERNEL
>
> 2.4.19
>
> $ /tmp/Disk1/install/ runInstaller -paramFile /tmp/oraparam. ini
>
>
>
> - Welcome Screen: Click Next
>
> - File Locations: Use default values (in my example:
/tmp/Disk1/stage/ products. xml)
>
> - Available Products: Select "Oracle Universial Installer
10.1.0.3.0 !"
>
> - Summary: Click Install
>
> - At the end of the installation, you must exit runInstaller!
>
>
> Ensure that no Oracle processes are running:
>
> ps -ef | grep ora
>
>
> Now to patch Oracle9iR2, run:
>
> su - oracle
>
> $ echo $LD_ASSUME_KERNEL # it is important that this variable is set!
>
> 2.4.19
>
> $ /tmp/Disk1/install/ runInstaller -paramFile /tmp/oraparam. ini
>
>
>
> - Welcome Screen: Click Next
>
> - File Locations: Use default values (in my example:
/tmp/Disk1/stage/ products. xml)
>
> - Available Products: Select "Oracle 9iR2 Patchset 9.2.0.6.0"
>
> - Summary: Click Install
>
> When are asked to run root.sh, run it
before you click Continue
>
> - At the end of the installation, exit runInstaller.
>
>
>
>
> After the 9.2.0.6 patchset has been applied, download the patch
4190568 from http://metalink. oracle.com. Also, download the opatch
utility for release 10.1.0.2 (patch 2617419) from
http://metalink. oracle.com.
>
> To install opatch, run:
> su - oracle$ cp p2617419_10102_ GENERIC.zip /tmp$ cd /tmp$ unzip
p2617419_10102_ GENERIC.zip$ cp -a /tmp/OPatch/ $ORACLE_HOME
>
> To apply the 4190568 patch, run
> su - oracle$ unzip p4190568_9206_ LINUX.zip$ cd 4193454$ export
PATH=$PATH:$ ORACLE_HOME/ OPatch$ opatch apply
>
>
> Now you should be able to create a database with dbca:
>
> su - oracle
>
> dbca
> Let me know in case of any concerns.
>
> Requirements for Installing Oracle 9iR2 on RHEL4
>
> Minimum Software Requirement:
>
> * Required OS Components
> - compat-db-4. 1.25-9
> - compat-gcc-32- 3.2.3-47. 3
> - compat-gcc-32- c++-3.2.3- 47.3
> - compat-oracle- rhel4-1.0- 3
> - compat-libcwait- 2.0-1
> - compat-libgcc- 296-2.96- 132.7.2
> - compat-libstdc+ +-296-2.96- 132.7.2
> - compat-libstdc+ +-33-3.2. 3-47.3
> - gnome-libs-1. 4.1.2.90- 44
> - gnome-libs-devel- 1.4.1.2.90- 44
> - libaio-devel- 0.3.102-1
> - libaio-0.3.102- 1
> - make-3.80-5
> - openmotif21- 2.1.30-11
> - xorg-x11-deprecated -libs-devel- 6.8.1-23. EL
> - xorg-x11-deprecated -libs-6.8. 1-23.EL
>
>
> The compat-oracle- rhel4-1.0- 3 and compat-libcwait- 2.0-1 packages are
available from Metalink Patch 4198954.
>
> Setting Oracle Environments
> As the oracle user execute the following commands:
>
> # Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9,
> # RHEL AS 3, and RHEL AS 4 !!
> # Use the "Linuxthreads with floating stacks" implementation
instead of NPTL:
> export LD_ASSUME_KERNEL= 2.4.19 # for RHEL AS 4
>
> # Oracle Environment
> export ORACLE_BASE= /u01/app/ oracle
> export ORACLE_HOME= $ORACLE_BASE/ product/9. 2.0
> export ORACLE_SID=test
> export ORACLE_TERM= xterm
> # export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not
in $ORACLE_HOME/ network/admin
> export NLS_LANG=AMERICAN;
> export ORA_NLS33=$ORACLE_ HOME/ocommon/ nls/admin/ data
> LD_LIBRARY_PATH= $ORACLE_HOME/ lib:/lib: /usr/lib
> LD_LIBRARY_PATH= $LD_LIBRARY_ PATH:/usr/ local/lib
> export LD_LIBRARY_PATH
>
> # Set shell search paths
> export PATH=$PATH:$ ORACLE_HOME/ bin
> Starting runInstaller
> su - oracle
>
> $ echo $LD_ASSUME_KERNEL
>
> 2.4.19
>
> $ ./runInstaller
>
> - Welcome Screen: Click Next
>
> - Inventory Location: Click OK
>
> - Unix Group Name: Use "oinstall" and click Next
>
>
>
> When asked to run /tmp/orainstRoot. sh, run it before you click Continue
>
>
>
> - File Locations: Use default values
>
> - Available Products: Select "Oracle9i Database 9.2.0.4.0"
>
> - Installation Types: Select Custom since we only want to install
the software for now
>
> - Available Products: Click Next or add some more components.
>
> - Components Locations: Accept default values and click Next
>
> - Privileged Operating System Groups:
>
> I used the default values: OSDBA Group =
dba, OSOPER Group = dba
>
> - Create database: Select NO since we first need to patch
Oracle database software!
>
> - Summary: Start the Install
>
>
>
>
>
> ** IF THE FOLLOWING ERROR IS ENCOUNTERED AFTER RUNNING RUNINSTALLER:
> [oracle@localhost Disk1]$ ./runInstaller -paramFile
'/tmp/oraparam. ini'
> [oracle@localhost Disk1]$ Initializing Java Virtual Machine from
/tmp/OraInstall2008 -03-25_11- 33-36AM/jre/ bin/java. Please wait...
> Error occurred during initialization of VM
> Unable to load native library:
/tmp/OraInstall2008 -03-25_11- 33-36AM/jre/ lib/i386/ libjava.so: symbol
__libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link
time reference · Refer to Metalink Note:264178. 1to download
the Patch 3006854 . - unzip p3006854_9204_ LINUX.zip
> - login as the root user
> - set your current directory to the directory where the patch is
located.
> - sh rhel3_pre_install. sh You do need root privileges to run the
last command line. After the Installation has completed: Patching
Oracle9i R2 (9.2.0.4) on RH AS 4 Download the patch 3948480 (Oracle9i
Patch Set Release 2 (9.2.0.6) Patch Set 5) from
http://metalink. oracle.com and execute the following commands:
>
> su - oracle
>
> $ cp p3948480_9206_ LINUX.zip /tmp
>
> $ cd /tmp
>
> $ unzip p3948480_9206_ LINUX.zip
>
> Archive: p3948480_9206_ LINUX.zip
>
> creating: Disk1/
>
> creating: Disk1/stage/
>
> creating: Disk1/stage/ Patches/
>
> ...
>
>
> Now download the patch 4188455 from http://metalink. oracle.com.
> This patch is needed for launching the runInstaller that came with
the patch 3948480 we just downloaded above.
>
> su - oracle
>
> $ cp p4188455_10103_ LINUX.zip /tmp
>
> $ cd /tmp
>
> $ unzip p4188455_10103_ LINUX.zip
>
> Archive: p4188455_10103_ LINUX.zip
>
> inflating: oraparam.ini
>
> inflating: README.txt
>
> $
> The /tmp/oraparam. ini file will now be used for launching the
runInstaller that came with the patch 3948480.
>
> To patch the runInstaller itself, run:
>
> su - oracle
>
> $ echo $LD_ASSUME_KERNEL
>
> 2.4.19
>
> $ /tmp/Disk1/install/ runInstaller -paramFile /tmp/oraparam. ini
>
>
>
> - Welcome Screen: Click Next
>
> - File Locations: Use default values (in my example:
/tmp/Disk1/stage/ products. xml)
>
> - Available Products: Select "Oracle Universial Installer
10.1.0.3.0 !"
>
> - Summary: Click Install
>
> - At the end of the installation, you must exit runInstaller!
>
>
> Ensure that no Oracle processes are running:
>
> ps -ef | grep ora
>
>
> Now to patch Oracle9iR2, run:
>
> su - oracle
>
> $ echo $LD_ASSUME_KERNEL # it is important that this variable is set!
>
> 2.4.19
>
> $ /tmp/Disk1/install/ runInstaller -paramFile /tmp/oraparam. ini
>
>
>
> - Welcome Screen: Click Next
>
> - File Locations: Use default values (in my example:
/tmp/Disk1/stage/ products. xml)
>
> - Available Products: Select "Oracle 9iR2 Patchset 9.2.0.6.0"
>
> - Summary: Click Install
>
> When are asked to run root.sh, run it
before you click Continue
>
> - At the end of the installation, exit runInstaller.
>
>
>
>
> After the 9.2.0.6 patchset has been applied, download the patch
4190568 from http://metalink. oracle.com. Also, download the opatch
utility for release 10.1.0.2 (patch 2617419) from
http://metalink. oracle.com.
>
> To install opatch, run:
> su - oracle$ cp p2617419_10102_ GENERIC.zip /tmp$ cd /tmp$ unzip
p2617419_10102_ GENERIC.zip$ cp -a /tmp/OPatch/ $ORACLE_HOME
>
> To apply the 4190568 patch, run
> su - oracle$ unzip p4190568_9206_ LINUX.zip$ cd 4193454$ export
PATH=$PATH:$ ORACLE_HOME/ OPatch$ opatch apply
>
>
> Now you should be able to create a database with dbca:
>
> su - oracle
>
> dbca
> Let me know in case of any concerns.
Subscribe to:
Posts (Atom)