go to http://oracle.in.th

Tuesday, October 6, 2009

Create, Drop & Recreate Oracle Enterprise Manager

ในกรณีที่ต้องการทำการสร้าง (Create), ลบ (Drop) หรือ ลบแล้วสร้างใหม่ (Recreate) Enterprise Manager (EM) ไม่ว่าจะมีสาเหตมาจากการ ไม่ได้สร้างไว้ตั้งแต่แรกหรือสร้างไว้แล้วมีปัญหาใดๆก็ตาม สามารถทำได้โดยการใช้คำสั่งต่อไปนี้ครับ

1. การสร้าง Enterprise Manager

emca -config dbcontrol db -repos create

เมื่อทำการรันคำสั่งแล้วจะพบข้อความต่างๆดังนี้ ให้ใส่ข้อมูลตามความเป็นจริงลงไป

Enter the following information:

Database SID:

Listener port number:

Password for SYS user:

Password for DBSNMP user:

Password for SYSMAN user:

Email address for notifications (optional):

Outgoing Mail (SMTP) server for notifications (optional):

2. การลบ Enterprise Manager

emca -deconfig dbcontrol db -repos drop

เมื่อทำการรันคำสั่งแล้วจะพบข้อความต่างๆดังนี้ ให้ใส่ข้อมูลตามความเป็นจริงลงไป

Enter the following information:

Database SID:

Listener port number:

Password for SYS user:

Password for SYSMAN user:

3. การลบและสร้างใหม่ Enterprise Manager

emca -config dbcontrol db -repos recreate

เมื่อทำการรันคำสั่งแล้วจะพบข้อความต่างๆดังนี้ ให้ใส่ข้อมูลตามความเป็นจริงลงไป

Enter the following information:

Database SID:

Database Control is already configured for the database

You have chosen to configure Database Control for managing the database

This will remove the existing configuration and the default settings and perform a fresh configuration

Do you wish to continue? [yes(Y)/no(N)]: Y

Listener port number:

Password for SYS user:

Password for DBSNMP user:

Password for SYSMAN user:

Email address for notifications (optional):

Outgoing Mail (SMTP) server for notifications (optional):

ในการสร้างหรือสร้างใหม่ Enterprise Manager นั้น จะใช้เวลาค่อนข้างนานครับ บางทีอาจจะใช้เวลาครึ่งชั่วโมงถึง 1 ชั่วโมงเลยทีเดียว จึงควรจัดสรรเวลาให้เหมาะสมและไม่มีผลกระทบต่อระบบการทำงานด้วยครับ
ข้อเขียนนี้ช่วยฉัน:  

1 comment:

Unknown said...

ถ้าเรามีการสร้าง job เอาไว้ แล้วเราไป drop มัน

job ที่สร้างไว้จะหายไปหรือป่าวครับ

???

Post a Comment