Database doesn't shutdown during shutting down the server
Dear Friends ,
I have to use the following dcript to use Auto startup and shutdown my Oracle Database in RHEL 4 .
step 1:
#!/bin/bash
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
# Set ORACLE_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
# Set ORACLE_OWNER to the user id of the owner of the
# Oracle database in ORACLE_HOME.
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
ORACLE_OWNER=oracle
if [ ! -f $ORACLE_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl start"
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbshut
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop"
esac
step 2:
cat /etc/inittab
*:/u01/app/oracle/product/10.2.0/db_1:N
orcl:/u01/app/oracle/product/10.2.0/db_1:Y
step 3:
Keep "dbora" in following path :
/etc/rc.d/rc3.d/dbora
/etc/rc.d/rc5.d/dbora
/etc/rc.d/init.d/dbora
And also ,
chmod 750 /etc/init.d/dbora
chkconfig --level 345 dbora on
Now ,The script works fine and ORacle Database and Listener service starts automatically during startup the server .But during shutdown the server, I cannot understand or can't recognize that the Oracle Database & listener service are shutdown auto . I think it does not work properly..... So i need to know that Oracle Database & listener service are stop automatically during shutting down the server . Using the above scripts , How can I do it ? Is there any wrong then plz advice me .......Thx ...
step 3:
Keep "dbora" in following path :
/etc/rc.d/rc3.d/dbora
/etc/rc.d/rc5.d/dbora
/etc/rc.d/init.d/dbora
And also ,
chmod 750 /etc/init.d/dbora
chkconfig --level 345 dbora on
Check following links are there
# ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/K01dbora
# ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora
# ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/K01dbora
# ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora
Script/link start with "K" , is responsible for shutdown database.
Check following Oracle Documentation link , it explain all in details
Starting and Stopping Oracle Software
- Virag Sharma
http://viragsharma.blogspot.com
http://virag.sharma.googlepages.com
Similar Messages
-
Shutting Down the server using Xyplex ?- Root passwd not known for Decomiss
Hi All,
I am on run level 3 and need to get to run level 0 through xyplex console.The server is on run level 3 .I know there are controls for xyplex to get to run level 0 - ctrl a + ctrl b.But these are not working.I dont have the access to the server rite now.Only access to console but I cannot login to the server.( it was decommisnned).Does anybody know how to get to run level 0 or shutting down the server through xyplex.step 3:
Keep "dbora" in following path :
/etc/rc.d/rc3.d/dbora
/etc/rc.d/rc5.d/dbora
/etc/rc.d/init.d/dbora
And also ,
chmod 750 /etc/init.d/dbora
chkconfig --level 345 dbora on
Check following links are there
# ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/K01dbora
# ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora
# ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/K01dbora
# ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora
Script/link start with "K" , is responsible for shutdown database.
Check following Oracle Documentation link , it explain all in details
Starting and Stopping Oracle Software
- Virag Sharma
http://viragsharma.blogspot.com
http://virag.sharma.googlepages.com -
TNS-12638 when shutting down the server
Everytime when we shut down the database server (Win2K, Ora 9.2.0.1.0) we
get the following entries in the log files:
ora.log:
Fatal NI connect error 12638, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracletest2)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=test2)(CID=(PROGRAM=c:\oracle\ora92\bin\ORACLE.EXE)(HOST=CAESAR)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Everytime when we shut down the database server (Win 2k) we receive the following entry in the file ora.log:
Windows: Version 9.2.0.1.0 - Production
Time: 19-MÃ??R-2003 18:58:00
Tracing not turned on.
Tns error struct:
nr err code: 0
ns main err code: 12638
TNS-12638: Abrufen der ID-Daten nicht erfolgreich
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
sqlnet.log
Fatal NI connect error 12638 ns secondary err code: 0
N=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
Fatal NI connect error 12638, connecting to:
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
VERSION INFORMATION:
nt main err code: 0
Version 9.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
VERSION INFORMATION:
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
Time: 19-MÃ??R-2003 18:58:00
Time: 19-MÃ??R-2003 18:58:00
Tracing not turned on Tracing not turned on.
Tns error struct:
nr err code: 0
ns main err code: 12638
TNS-12638: Abrufen der ID-Daten nicht erfolgreich
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Tns error struct:
nr err code: 0
ns main err code: 12638
TNS-12638: Abrufen der ID-Daten nicht erfolgreich
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
We use SQLNET.AUTHENTICATION_SERVICES= (NTS).
We get the error only when we shut down the server. The database was created with the database configuration assistant. Thankscheck the file sqlnet.ora (ORACLE_HOME\NETWORK\ADMIN)where the database is installed for an entry like SQLNET.AUTHENTICATION_SERVICES= (NTS). If so, disable it.
-PK -
Things to consider before shutting down the Server
Hi,
What are all the things to consider before shutting down the Essbase Server?
Just we need to close the applications and Agent process or do we need to take care any other things also.
Thanks in AdvanceIn order to make sure of a soft shut down, I normally would
- Disconnect all users
- Prevent connections
- Unlock all objects
- Shut down all databases and applications
- Shut down the Server Agent
Brian Chow -
Do I have to shutdown 9i before shutting down the server?
Hi, probably a stupid question but I just curious because there are some error when I chkdsk /F my HD. I am using restart.vbs to do an unattended shutdown on w2k server. I wonder whether Oracle cause this or Oracle take care of this automatically?
Thanks for your info.You definitely want to make sure you stop your Oracle database before you shutdown your server.
One way of doing this in an automated script like you have is to stop the W2K service for Oracle as in "net stop " and then the name of the Oracle service running on your server. You should also add the "/y" flag after the name of the service to automatically stop dependent services. -
Shutting down the database getting error.
Hi,
while i am shutting down the database, i am getting below error message.
SQL> shutdown immediate;
ORA-01116: error in opening database file 170
ORA-01110: data file 170: '/x01/CQ_Request/ORADATA_FILE/otlmedium_data08.dbf'
ORA-27041: unable to open file
SVR4 Error: 2: No such file or directory
Additional information: 3
and also i know otlmedium_data08.dbf file is not exist in that location. So could anyone help me on this how can i overcome this error and shutdown the database.I don't understand how you got in this situation but maybe it is necessary to make something like:
ALTER DATABASE RENAME FILE '/x01/CQ_Request/ORADATA_FILE/otlmedium_data08.dbf' TO '/<path where the file really is>/otlmedium_data08.dbf'; -
Shutting down the database in Windows...
I just read that shutting down the database by directly stopping the Oracle Service (instead of using the shutdown command from sqlplus) will abruptly stop your database, and the database will have to perform an instance recovery upon restarting.
This hasn't been my experience at all. I was under the impression shutting down the service was equal to a shutdown immediate.
Any comments?They will perform the same operation. You can do a test and prove it to your colleague.
With each method you'll notice:
Completed: alter database close normalin the alert log and you shouldn't see any "crash recovery" messages in the alert log when you restart the database. However, if you manually do a shutdown abort, you may notice a message as
Shutting down instance (abort)and the following messages when you restart the database:
ALTER DATABASE OPEN
Wed Aug 02 17:25:02 2006
Beginning crash recovery of 1 threads
Wed Aug 02 17:25:03 2006
Started redo scan
Wed Aug 02 17:25:03 2006
Completed redo scan
1094 redo blocks read, 111 data blocks need recovery
Wed Aug 02 17:25:03 2006
Started recovery at
Thread 1: logseq 1, block 4472, scn 0.0
Wed Aug 02 17:25:04 2006
Recovery of Online Redo Log: Thread 1 Group 3 Seq 1 Reading mem 0
Mem# 0 errs 0: E:\ORACLE\ORADATA\ORCL9\REDO03.LOG
Wed Aug 02 17:25:04 2006
Completed redo application
Wed Aug 02 17:25:04 2006
Ended recovery at
Thread 1: logseq 1, block 5566, scn 0.2611108
111 data blocks read, 111 data blocks written, 1094 redo blocks read
Crash recovery completed successfully -
iBooks updated to 3.2 on iPhone 5. Now I have a red 1 indicator by the word purchased. But it doesn't do anything. I've shut down the phone and restarted to no avail. Any suggestions?
I am having a similar problem. Running Xp.
Latest revision of firefox.
After using firefox for a while if I exit, parent.lock is locked and i have to reboot to reload firefox.
I have killed all firefox applications from task manager (usually there are none). and I have tried 3 different "file unlock" programs including unlocker to no avail.
I also recently installed a program that shows -all- open files, and parent.lock is not listed, and thus not closable/unlockable from there. -
My macbook pro doesn't restart or shut down from the apple menu. I run 10.7.5, any suggestions?
Reset SMC. http://support.apple.com/kb/HT3964
Choose the method for:
"Resetting SMC on portables with a battery you should not remove on your own".
Best. -
HT1386 If my lock button doesn't work what can i do to shut down the phone?
If My Lock Button Doesn't Work What Can I Do To Shut Down The Phone?
More than likely a hardware problem.
Make an appointment at an Apple Store if there is one nearby to confirm. -
My Ipod Touch have a black screen when an app shut down and I can not shut down the Ipod. The screen is still black and I did the press two buttons solution and it doesn't work. What I have to do now?
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
I have iphone 4s and can't send MMS. I contacted Sprint, they checked everything and it is fine. The advised me to contact Apple. I tried to reset all settings, shut down the iphone but still MMS doesn't work. Plz help!
Did you already try to set it up as new device?
How to back up your data and set up as a new device
iOS: Wi-Fi or Bluetooth settings grayed out or dim -
While I'm using safari, it will freeze up. When I force quit safari and reopen it, I find that I'm back to where I was when I did the force quit and safari remains locked up. When I try to restart the computer, I get a pop up that says that safari cancelled my restart. I then press the power button to shut down the computer. When I reboot the computer and open safari, I see all the tabs and windows that were opened when this issue began, only this time safari isn't frozen. This problem started yesterday.
Has anyone experienced the same problem? Is there a fix for this problem?Try Resetting Safari: Open Safari. Cick on the name Safari in the menu bar. In the drop down menu click Reset Safari.
-
SAP System copy without shutting down the source and the target system
Hi,
We need to need to System refresh without shutting down both the source and the target system, i read the docs from SAP looks like we need to shutdown the source system during export and import phase, is there any way to do the system refresh without shutting down the system.
SathishHi,
Think a little bit about what is a database and you'll get the answer that what you "need to need" is impossible.
Of course it is possible to keep the source running (hopefully, because ususally it is the production system !) by using an online backup, but you need to stop the target system because you will restore a backup on it.
If you use the export/import way, you have to stop both source and target system.
Regards,
Olivier -
Database system was not properly shut down
Dear Mac community,
I have just repaired a friends 800 MHz 17" Flat Panel Display iMac... Somehow the hard drive had become badly corrupted and the system was frequently shutting itself down and freezing with kernel panics as a result. I managed to recover my friends data using Data Rescue II and after using Disk Warrior managed to do an Erase & Install of Mac OS X (10.4.4).
The iMac appears to be fine now except for one worrying thing that I have noticed in the console each time after restarting:
Mac OS X Version 10.4.4 (Build 8G32)
2006-02-02 16:20:47 +0000
2006-02-02 16:20:50.962 SystemUIServer[201] lang is:en
LOG: database system shutdown was interrupted at 2006-02-02 16:19:46 GMT
LOG: checkpoint record is at 0/87904C
LOG: redo record is at 0/87904C; undo record is at 0/0; shutdown FALSE
LOG: next transaction id: 550; next oid: 82855
LOG: database system was not properly shut down; automatic recovery in progress
LOG: ReadRecord: record with zero length at 0/87908C
LOG: redo is not required
LOG: database system is ready
Does anyone have an idea what this might be and how I can resolve the issue??
The systems performance doesn't appear to be affected in anyway however it looks and sounds ominous.
One other small thing I have noticed is that the iMac won't automatically put itself into sleep mode despite it being set to in the Energy Saver System Preferences. There are no external hardware devices attached such as a printer, firewire device, USB hub etc. I have reset the PRAM and NVRAM and this appears to have had no effect.
Any advice / suggestions greatly appreciated!!
Many thanks,
JustinMarking as answered as I managed to resolve the issue
Maybe you are looking for
-
Daily production plan for operations
Hi, One Production order generally runs for more than 1 month and consist of more than 100 operations and order qty will be one. in this case we want to prepare daily prod plan for operations not for qty. say on 1.6.09 we will do cutting operation, 2
-
Installing CCB 2.3.1 on Windows 2008 R2 Standards 64 bit Edition Error
i Installed the Micro Focus Server v5.1 and java 1.6._23 build , Activer Perl 64 all are 64 bit software, all software are installed. When i run the CCB server i am getting the follwing Exception this is one Exceptio 1. C:\opt\MicroFocus\Bin\CBLJVM_S
-
PSE 12 keeps crashing on my mac
I just got this Photoshop and it keeps crashing on me! I have only started importing some pictures in and doing basic organizing and the program has probably shut down on me 10 times (just within the last hour--shut down several times when I initiall
-
ABC analysis and cyclic inventory
What is the relAtion between ABC indicators and CC indicators?Why do we need to run ABC analysis for cyclic inventory?Cant we randomly assign the CC indicators in MM02?
-
Successmaker program not working behind Cisco SA520
My customer is a small school in British Columbia. They have used the Successmaker program (written by Pearson Education) to teach numeracy and literacy skills. Since installing a SA520 the teachers are saying that Successmaker does not work properly