Actually the closest to connect internal is the following:
sqlplus '/as sysdba'
startup
This way you don't put a password in the script if you do an automatic startup from the script.
svrmgrl was desupported in 9i
Main Topics
Browse All TopicsHi,
I would like to know the EXE to startup and shutdown Oracle 9i database from command prompt (MS-DOS). I know in earlier version of Oracle (8i), there is an utility SVRMGRL to start oracle and we use CONNECT INTERNAL to connect and then start the database from DOS Prompt. But i 9i, i am not sure how can i do this from command prompt.
Also i am aware that 9i allows us to start the database from SQL PLUS prompt. But in this case, how can i login in to SQL PLUS to start the database?
I have Windows XP and Oracle 9i Enterprise Edition.
Can anyone answer the above 2 questions?
Vj.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Windows/XP and Oracle 9i or 8i are very different beast than their Unix counterparts. The main difference is the use of Windows services you need to start and stop to start and stop the database. While using SQL*PLUS and SVRMGRL is possible for Unix systems, you need to take a different approach with Windows/XP.
You need to look at the ORADIM command. Go to the command line and issue the command without any paramters and the syntax will appear. This command will insure the state of the Windows services and the database based upon the parameters you use.
While it is possible to use SVRMGRL and SQL*PLUS with Windows/XP, there are many "gotchas." Working from the services' perspective is the safest way to use Windows and Oracle. The best way I found to start/stop an Oracle database on Windows using the command line is ORADIM.
Bertram Moshier
Oracle Certified Professional 8i and 9i DBA
http://www.bmoshier.net/be
Hello vijayakumar_vs,
I'm wondering how my suggestion of using the ORADIM command on the command line is working out for you. The ORADIM command should work for you without a problem on Oracle 9i EE and Windows/XP PROFESSIONAL. If you have any additional questions, please, feel free to contact me.
Bertram Moshier
Oracle Certified Professional 8i and 9i DBA
http://www.bmoshier.net/be
Hello vijayakumar_vs,
I'm wondering how my suggestion of using the ORADIM command on the command line is working out for you. The ORADIM command should work for you without a problem on Oracle 9i EE and Windows/XP PROFESSIONAL. If you have any additional questions, please, feel free to contact me.
Bertram Moshier
Oracle Certified Professional 8i and 9i DBA
http://www.bmoshier.net/be
Moshier,
I am working with the ORADIM command at the command prompt and it seems to start and stop a database just fine. One thing I noticed is that if the database is already running - issuing the ORADIM -startup -sid produces an error (ORA-1031)
Is there a way to check to see if the database is running first - then issuing the startup if it is not.
I am working on backup methods to export my databases at night and have several on my laptop. I start them manually if I am working on that db but don't run them all at once. By the end of the day - some are running and some are not. I plan to put all this into a batch file and schedule a windows 200 task.
Thanks
I think this will be the easiest way to shutting down Database and Starting the same.
create a batch file filename.bat as
@echo off
sqlplus @c:\shutoralce.sql
exit
---------end of batch file ---------
create file named as shutoracle.sql in our C:\shutoracle.sql as
sys/<<password of sys>>@<<sidname>> as sysdba
shutdown
exit
-------------end of shutoracle.sql file --------------------
I think this will be the easiest way to shutting down Database and Starting the same.
create a batch file filename.bat as
@echo off
sqlplus @c:\shutoralce.sql
exit
---------end of batch file ---------
create file named as shutoracle.sql in our C:\shutoracle.sql as
sys/<<password of sys>>@<<sidname>> as sysdba
shutdown
exit
-------------end of shutoracle.sql file --------------------
for starting oracle what is important is stop and start listener and sidservice. and then connect try creating a batch for startup if you fail please respond. We will find some solution.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept bmoshier's comment as answer.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Henka
EE Cleanup Volunteer
Greetings,
I am using oracle 9i server on windows XP Professional. Recently the company upgraded to XP Service Pack 2 after which one of my colleagues who would normally connect to this server from his machine was unable to do so. The error message sent out was TNS-12203: Unable to connect to Destination. My colleague is able to ping to my machine, but he cannot tnsping to this server.
I have checked all entries in his TNSNAMES.ora, he is using Oracle net 8.0 to connect to server on my machine.
My suspicions go directly to XP Service Pack 2, but I am not sure. Please help me. We are very tight on resources and at present it has reduced from 3 users to 1.
Business Accounts
Answer for Membership
by: DonFreemanPosted on 2003-08-11 at 13:50:03ID: 9125157
From the DOS command prompt:
Type: sqlplus /nolog
conn sys/password as sysdba
startup
I have tried to find a way to startup from the GUI but haven't succeeded yet. I think the problem is there is no way to pass the"as sysdba" from that application. Eventually they are going to deprecate sqlplus. You can use the SQLPlus Worksheet which allows connect as sysdba.