HPI DB Creation 12c
HPI DB Creation 12c
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/12.1.0.1.2
Requires IQOQ: [YES for Prod or Formal Test, else NO]
1. Publication Records ........................................................................................................................... 2
2. Oracle Database Creation Procedures .............................................................................................. 3
2.1. Creation Prerequisites ............................................................................................................................3
2.1.1. Code Tree Verification ...........................................................................................................................3
2.1.2. File System Verification..........................................................................................................................3
2.1.3. Environment Verification.......................................................................................................................3
2.2. Create 12.1.0.1.2 Database .....................................................................................................................5
2.3. Post Database Creation Steps ................................................................................................................6
2.4. Names Resolution ....................................................................................................................................8
2.5. Setup of Enterprise Manager Monitoring and Backups .....................................................................8
3. Attachments ...................................................................................................................................... 10
3.1. listener.ora .............................................................................................................................................10
3.2. tnsnames.ora (Local) .............................................................................................................................10
3.3. tnsnames.ora (Global ONLY) and OID ..............................................................................................11
3.4. sqlnet.ora................................................................................................................................................11
3.5. ldap.ora ..................................................................................................................................................11
3.6. Database Parameters ............................................................................................................................12
1
1. Publication Records
2
2. Oracle Database Creation Procedures
2.1. Creation Prerequisites
2.1.1. Code Tree Verification
/opt/oracle/ormerck/product/12.1.0.1.2
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.
3
Step Activity Expected Results
2.1.3.1 If no DNS alias called [SID] exists open a Remedy Work DNS alias exists or is requested
Order to create a DNS alias for the new database server
and assign it to the with
"ACCESS_ADMINISTRATION/INF_DATA" support
organization/group.
2.1.3.3 Check if /etc/oratab contains the line: Line present in /etc/oratab as specified.
[SID]:/opt/oracle/ormerck/product/12.1.0.1.2: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
4
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 .
ln -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 Parameter added to listener.ora
the 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
5
Step Activity Expected Results
2.2.2 Change directory to Directory changed
/opt/oracle/ormerck/admin/[SID]/create
2.2.3 Copy all of the DB creation scripts from the Oracle Tar-file copied
Software Depot:
Be sure to use the correct database version directory!
sftp ormerck@dbadepot
cd /opt/oracle/install/script_depot/Create_DB_UNIX
cd 12101 Use correct version
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
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
./cr12101db -p CreateDB.conf
@ss_newdb_users.sql
2.3.3 For SOX databases only: Permissions changed.
sqlplus "/ as sysdba"
@ss_soxdb_users.sql
2.3.4 Create standard Client-facing DBA account CF DBA account created with grants.
sqlplus "/ as sysdba"
@cfdba.sql
6
Step Activity Expected Results
2.3.5 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***
Starting with version 11.2.0.4
Parameter audit_trail = DB
AUD$ and FGA_LOG$ tables SHOULD
BE in SYSTEM tablespace
PURGE_AUDIT_DATA_PROC
procedure should be installed in
DBAUDIT schema.
Job should be scheduled to execute
PURGE_AUDIT_DATA_PROC by
DBAUDIT.
set recyclebin parameter to OFF
by default
2.3.6 Review the log file from the post-creation snapshot and Issues resolved
resolve any issues.
2.3.9 Verify the file usesqlnet.ctl exists and its permissions are File verified
set to 744
2.3.10 Verify the following line exists in the usesqlnet.ctl, or Entry verified
add it if the listener was newly created :
ormerck_listener
2.3.11 Grant permissions to dbmerck so that trace files can be Group permissions granted
removed via oraepm:
7
Step Activity Expected Results
2.3.13 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.
8
Step Activity Expected Results
2.4.2 Refer to EM10g SOP for the setup of monitoring and backups Monitoring and Backup SOP performed
EM Migration Scenarios.doc
9
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/12.1.0.1.2)
(ENVS = "LD_LIBRARY_PATH=/opt/oracle/ormerck/product/12.1.0.1.2/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
10
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
11
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 2000
{DF1}/system_[SID]_01.dbf SYSTEM 1500
{DF1}/temp_[SID]_01.dbf TEMP 2000
{DF2}/users_[SID]_01.dbf USERS 100
{DF2}/undotbs1_[SID]_01.dbf UNDOTBS1 1000
12