You are on page 1of 3

Database IMPORT:

1) Create the new schema;


create user t24tmlmst identified by hououken2015 default tablespace T24T_SYSTEM
quota unlimited on T24T_SYSTEM quota unlimited on T24T_INDEX account unlock;
2) Grant the permissions to the new schema user:
grant connect, resource, query rewrite, create session, create tablespace, creat
e any table, create any index, create any view, exp_full_database, imp_full_data
base to t24tmlmst;
3) Make a copy of Import script
cd /home/IMP_StoS
cp -p oracle_pump_imp_t24tmlsit.sh oracle_pump_imp_t24tmlmst.sh
4) rename the references of "t24tmlsit" to "t24tmlmst"
[oracle@MLt24tdb10 IMP_StoS]$ grep sit oracle_pump_imp_t24tmlsit.sh
echo "grant read,write on directory impdp_dir to t24tmlsit;" >> ${TEMPFILE}
echo "remap_schema=$1:t24tmlsit" >> ${TMPFILE}
impdp t24tmlsit/hououken2015 parfile=${TMPFILE}
grep mst oracle_pump_imp_t24tmlmst.sh
echo "grant read,write on directory impdp_dir to t24tmlmst;" >> ${TEMPFILE}
echo "remap_schema=$1:t24tmlmst" >> ${TMPFILE}
impdp t24tmlmst/hououken2015 parfile=${TMPFILE}
5) Refresh "T24TMLMST" with the existing Master Env:
./oracle_pump_imp_t24tmlmst.sh T24TMLSIT t24tmlsit_EXP_t24tmlsit_ADHOC_20111102_
20110901
Database:
t24tmlmst/hououken2015
DB login user name: 't24tmlsit'
DB login password: 'O7Rh9h5GWk8vF/+kCHndHw=='
DB login schema: 't24tmlsit'
Email address: '**NONE**'
XML Schema directory: '**NONE**'
Press any key to continue.
DB login user name: 't24tmlmst'
DB login password: 'O7Rh9h5GWk+RDWhEifpYIQ=='
DB login schema: 't24tmlmst'
Email address: '**NONE**'
XML Schema directory: '**NONE**'
Press any key to continue.

useradd -u 6022 -g 6003 -d /MZHt24t/app/t24tmlmst/bnk/bnk.run -s /bin/ksh t24tml


mst
App Server:
1) Take Backup of BNK
2) Create the application (env) user in Linux
3) Set the password for the new user
4) Update the ulimit for this user in /etc/security/limits.conf
5) Create the application (env) dir in /MZHt24t/app
Copied from the existing env.
6) Refresh the BNK with the required Backup
7) Update the ownership of the port files with the new user
Location: /MZHt24t/app/tafc/R10/proc
8) Update the jedi_config for the new schema user & passwd (using config-XMLORAC
LE)
9) update the TCServer config:
environment.vars
tcserver.xml
10) Update the FTP Users home path
/etc/vsftpd/user_conf
DB Server:
1) Take the Database Backup & Drop the existing schema
2) Create the new schema users and grant the permissions as necessary
3) Update the scripts in /home/EXP, /home/IMP_PtoS, /home/IMP_StoS with the new
username and passwd
4) Refresh the env with the required Backup using import backups
8) update the env vars
sh-3.2$ env>environment.vars
sh-3.2$ ls -lrt
total 28
-rwxrwxrwx 1 t24tmlmst t24t 6606
-rwxrwxrwx 1 t24tmlmst t24t 3441
-rwxrwxrwx 1 t24tmlmst t24t 1771
-rwxrwxrwx 1 t24tmlmst t24t 3338
-rwxrwxrwx 1 t24tmlmst t24t 6398
9) Drop the old schema

Aug
Aug
Aug
Nov
Nov

4
4
4
3
3

11:15
11:15
11:15
15:05
15:25

tcslog.properties
tcserver.xml.old
jconsrv.vars
tcserver.xml
environment.vars

10)

You might also like