Professional Documents
Culture Documents
HPI DB Creation 11g
HPI DB Creation 11g
DIVISION: [AP,CORP,CHC,EMEA,MAH,MFC,MMD,MRL,HH]
Oracle SID: [SID]
Server Name: [Server_name] (ITANIUM)
Oracle UNIX Owner : ormerck
Oracle UNIX Group : dbmerck
Oracle Home : /opt/oracle/ormerck/product/11.2.0.3.5
Requires IQOQ: [YES for Prod or Formal Test, else NO]
1
1. Publication Records
3
2. Oracle Database Creation Procedures
2.1. Creation Prerequisites
/opt/oracle/ormerck/product/11.2.0.3.5
2.1.2.2 Verify the following file systems for the data files: (the File systems verified.
number of file systems depends on the size of the
database) exists
/ormerck/dataxxx/oradata/[SID]
([Size in GB] GB)
/ormerck/arch001/oradata/[SID]
([Size in GB] GB)
2.1.2.3 For all the filesystems created here, make sure the File System ownership verified.
ownership is ormerck and the group to dbmerck.
4
2.1.3. Environment Verification
[SID]:/opt/oracle/ormerck/product/11.2.0.3.5:N.
mkdir –p admin/network
2.1.3.5 Change the environment to [SID] by running: Environment set and directory changed.
. oraenv
/opt/oracle/ormerck/admin/network
5
Step Activity Expected Results
2.1.3.6 If this is the first database for the user ormerck, Files and links are created
cd ${ORACLE_HOME}/network/admin
ln –s /opt/oracle/ormerck/admin/network/listener.ora .
ln –s /opt/oracle/ormerck/admin/network/tnsnames.ora .
ln –s /opt/oracle/ormerck/admin/network/sqlnet.ora .
lns –s /opt/oracle/ormerck/admin/network/ldap.ora .
2.1.3.7 If this is not the first database for ormerck, add to the New DB entry added to listener.ora
listener.ora the new database being created and leave
sqlnet.ora as is. or
N/A
2.1.3.8 If there are other 11g databases in the listener.ora, add the Parameter added to listener.ora
ENVS parameter to each SID_DESC for an 11g database.
(ENVS =
"LD_LIBRARY_PATH=<ORACLE_HOME>/lib")
2.1.3.9 If this is the first database for ormerck, start the listener Listener starts and tnsping returns OK
by issuing:
or
lsnrctl start ormerck_listener
N/A
tnsping [SID]
2.1.3.10 If this is not the first database for ormerck, test the Listener reloads and tnsping returns OK
listener by issuing:
or
lsnrctl reload ormerck_listener
N/A
tnsping [SID]
2.1.3.11 cd $ORACLE_BASE/admin Directory [SID] created successfully.
mkdir –p [SID]/create
6
Step Activity Expected Results
2.2.1 Logon to [Server_name] as ormerck User ormerck logged on.
2.2.2 Change directory to Directory changed
/opt/oracle/ormerck/admin/[SID]/create
2.2.3 Copy the tar file containing all the DB creation scripts Tar-file copied
from the Oracle Depot :
sftp ormerck@dbadepot
cd /opt/oracle/install/script_depot/Create_DB_UNIX
cd 11203
mget *
bye
2.2.4 Verify that the CreateDB.conf file entries correspond to CreateDB.conf modified to match
Database Parameter values in the APPENDIX and adjust environment settings/requirements
where appropriate.
Specify ARCHIVELOG=TRUE if the database should
have archive logging enabled
2.2.5 Grant execute permission on create script Create script is executable
./cr11203db -p CreateDB.conf
@ss_newdb_users.sql
2.3.4 For SOX databases only: Permissions changed.
sqlplus "/ as sysdba"
@ss_soxdb_users.sql
7
Step Activity Expected Results
2.3.5 Create standard Client-facing DBA account CF DBA account created with grants.
sqlplus "/ as sysdba"
@cfdba.sql
2.3.6 Run the post-creation configuration snapshot script. Date stamped output file listing database
configuration and parameters created.
sqlplus "/ as sysdba"
@dbparms.sql ***NOTE *** FOR AUDITING
Parameter audit_trail should be set to DB
AUD$ and FGA_LOG$ tables should NOT
be in SYSTEM tablespace
PURGE_AUDIT_DATA_PROC proceedure
should be installed
Job should be scheduled to execute
PURGE_AUDIT_DATA_PROC
set recyclebin parameter to OFF by
default
2.3.7 Review the log file from the post-creation snapshot and Issues resolved
resolve any issues.
ormerck_listener
2.3.12 Grant permissions to dbmerck so that trace files can be Group permissions granted
removed via oraepm:
8
Step Activity Expected Results
2.3.14 If any errors are identified in step 15, investigate the Content verified
errors that are returned and take necessary actions to
correct the error (if possible).
If no solution is found to correct the error, contact Oracle
Support and log a case with them.
2.3.16 IQOQ Required: [YES for Prod or Formal Test, 1) IQOQ document saved to Teamsite folder
2) Email sent to Database Platform Enginering
else NO]
If the SDLC classification of the database requires an IQOQ to
be generated, refer to the knowledge article for instructions.
9
2.6. Asset Management
10
3. Attachments
3.1. listener.ora
ormerck_listener=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=IPC)
(KEY=[SID]))
(ADDRESS=
(PROTOCOL=TCP)
(HOST=[Server_name])
(PORT=25881))
)
SID_LIST_ormerck_listener=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME= [SID].MERCK)
(ORACLE_HOME=/opt/oracle/ormerck/product/11.2.0.3.5)
(ENVS = "LD_LIBRARY_PATH=/opt/oracle/ormerck/product/11.2.0.3.5/lib")
(SID_NAME=[SID])
)
)
SECURE_REGISTER_ormerck_listener = (IPC)
IFILE=/usr/local/bin/oracletns/tnsnames.ora
IFILE=/usr/local/bin/tnsnames_USHH.ora
IFILE=/usr/local/bin/tnsnames_MMD.ora
11
3.3. tnsnames.ora (Global ONLY) and OID
[SID] =
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=[Server_name])
(PORT=25881)
)
)
(CONNECT_DATA=
(SID=[SID])
)
)
3.4. sqlnet.ora
3.5. ldap.ora
12
3.6. Database Parameters
TABLESPACE TABLE
Segment Space Extent Allocation Uniform
Tablespace Name Type
Management Management Type Size
AUDIT_DATA Permanent Auto Local Autoallocate
SYSAUX Permanent Auto Local Autoallocate
SYSTEM Permanent Auto Local Autoallocate
TEMP Temporary Auto Local Autoallocate
TOOLS Permanent Auto Local Autoallocate
USERS Permanent Auto Local Autoallocate
UNDOTBS1 Undo Auto Local Autoallocate
DATAFILES TABLE
Tablespace
Datafile Name Size (M)
Name
{DF2}/audit_data_[SID]_01.dbf AUDIT_DATA 1000
{DF1}/sysaux_[SID]_01.dbf SYSAUX 1000
{DF1}/system_[SID]_01.dbf SYSTEM 750
{DF1}/temp_[SID]_01.dbf TEMP 2000
{DF2}/users_[SID]_01.dbf USERS 100
{DF2}/undotbs1_[SID]_01.dbf UNDOTBS1 1000
13