Script to Shutdwon and startup Oracle instance
Hi
Can any one tell how to create a batch file to shutdwon or startup Oracle instance in NT server ?
Yasir
Assume you are using ora8i and the script file is called start.bat and shutdown.bat. Their contents are as follows:
cd %ORAHOME%
set oracle_sid=%SID%
%ORAHOME%\bin\svrmgrl
connect internal/password
startup pfile=%init_file_path%
exit
cd %ORAHOME%
set oracle_sid=%SID%
%ORAHOME%\bin\svrmgrl
connect internal/password
shutdown immediate
exit
Please replace %ORAHOME% and %SID% with related string.
Thanks
Similar Messages
-
Script to Stop and Start Oracle Meter Data Management
Hi,
This is my first post in Oracle forums so if i open this in the wrong thread please forgive me.
I tried to create a windows batch script to stop and start Oracle Meter Data Management but i can´t.
@echo off
D:\spl\MDMDEV\bin\splenviron.cmd -e MDMDEV
D:\spl\MDMDEV\bin\spl.cmd stop
D:\spl\MDMDEV\bin\splenviron.cmd -e MDMDEV
D:\spl\MDMDEV\bin\spl.cmd stop
The batch exits in the first command and i can´t understand why.
Another thing is if i use spl.cmd stop command it doesn´t do nothing, is this normal?
Thanks in advanced for all replies.
Best Regards.
NunoI had to put a call command in mine. I think it is because you are trying to run a .cmd file within your bat file. You're actually changing shells. Thats why you need the call.
call d:\spl\mdmdev\bin\splenviron.cmd -e mdmdev
call d:\spl\mdmdev\bin\spl.cmd start
I actually set mine up to use variables so all I had to change from script to script was the environment...
<snip>
SET SPLENV=MDMDEV
SET INSTALLDRIVE=D:
SET INSTALLDIR=SPL
SET BINDIR=%INSTALLDRIVE%\%INSTALLDIR%\%SPLENV%\bin
%INSTALLDRIVE%
cd %BINDIR%
REM Set envornment
call %BINDIR%\splenviron.cmd -e %SPLENV%
REM Wait a few seconds for environment to setup
ping localhost -n 5 > nul
REM Start SPL Web
call %BINDIR%\spl.cmd start
</snip>
I was unable to find a way to get this to run as a service. Have you?
I'm currently running these scripts in the startup/shutdown script section of the local machine policy (gpedit.msc). -
How to create a .exe script to start and stop Oracle EBS R12 in Linux
Hello,
I have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
you help will be appreciated.
AliI have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
you help will be appreciated.Please see these links.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Autostart+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Auto+AND+Start+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Managing Server Processes
http://docs.oracle.com/cd/E18727_01/doc.121/e13675/T530130T530133.htm#5274555
Thanks,
Hussein -
Tools and Script for stopping and starting SAP instances in the landscape
Hi All,
All our SAP system are on Windows 2003 and very few on Windows 2000.
Is there any possiblity for having a script which will stop and start SAP on all the instances in the Landscape from a central system?
Lets say we have some 200 SAP instances and we need to down all the instances for Windows patching.
In this case, we need to manually take remote desktop to stop and start all the instances one by one.
Also, do we have any 3rd party automated tools for this purpose?
Regards,
Siva.Hi Siva,
You can configure ACC for your system landscape.
http://help.sap.com/saphelp_nwmobile71/helpdata/en/83/43cd574af1489aadd4d71b2f47b77d/content.htm
Thanks
Atul -
How to shutdown and startup oracle 11g R1 from dbcontrol (EM)?
Dear All,
I have already installed oracle 11g R1. The database is running smooth including the dbcontrol / EM.
I have difficulty in shutdown and restart database from EM.
How to set EM, so that I can start and shutdown the database from EM?Hi,
If you are in windows, this is a very common problem.
You can try setting the logon as batch job to the OS user from local security policy
1.Go Control Panel, Administrative Tools.
2. Click on Local Security Policy.
3. Local Policies, User Rights Assignment.
4. Double click, 'Log on as a batch job'
Here provide username along with domain name like co.uk\foo
Regards -
Unable to start Oracle Instance via "dbstart"
I've successfully loaded Oracle 11g on a Red Hat Enterprise Linux 5.3. I'm now trying to start the instance and database using the "dbstart". The command does not start the instance successfully or the database. I've pasted the results from the log below:
/opt/oracle/product/11.1.0/db_1/bin/dbstart: Starting up database "TestDB"
Sun Jul 12 16:07:22 EDT 2009
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
/opt/oracle/product/11.1.0/db_1/bin/dbstart: line 113: [: 11: unary operator expected
logger: No init file found for Database instance "TestDB".
logger: Error: Database instance "TestDB" NOT started.
I've been researching this all weekend and have not found a solution yet. Please point me in the right direction for a solution.
My oratab file contains the path of the TestDB and is set to "Y". My profile is as follows:
ORACLE_OWNER="oracle"
ORACLE_HOME="/opt/oracle/product/11.1.0/db_1"
ORACLE_HOME_LISTNER=$ORACLE_HOME
ThanksHere are the results of the request:
[root@cscdserver13 ~]# su - oracle
[oracle@cscdserver13 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 13-JUL-2009 21:34:24
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
[oracle@cscdserver13 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 13-JUL-2009 21:34:50
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting /opt/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /opt/oracle/product/11.1.0/db_1/diag/tnslsnr/cscdserver13/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cscdserver13.azalea.local)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date 13-JUL-2009 21:34:50
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /opt/oracle/product/11.1.0/db_1/diag/tnslsnr/cscdserver13/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cscdserver13.azalea.local)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@cscdserver13 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 13-JUL-2009 21:35:10
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date 13-JUL-2009 21:34:50
Uptime 0 days 0 hr. 0 min. 19 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /opt/oracle/product/11.1.0/db_1/diag/tnslsnr/cscdserver13/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cscdserver13.azalea.local)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@cscdserver13 ~]$ lsnrctl service
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 13-JUL-2009 21:35:36
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The listener supports no services
The command completed successfully
[oracle@cscdserver13 ~]$ sqlplus '/ as sysdba'
SQL*Plus: Release 11.1.0.6.0 - Production on Mon Jul 13 21:36:18 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 3206836224 bytes
Fixed Size 2148680 bytes
Variable Size 1879049912 bytes
Database Buffers 1308622848 bytes
Redo Buffers 17014784 bytes
Database mounted.
Database opened.
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
[oracle@cscdserver13 ~]$
I appreciate all your help. At this point I'm completely lost.
Thanks -
Switchover between primary RAC and standby single instance
Hello All,
I am using Oracle 11gR2.
I am trying to do a switch over between primary database (RAC 2 nodes) and physical standby (single instance)
If my Primary is single instance i was following the below steps:
On the standby
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
On the primary database:
alter database commit to switchover to standby with session shutdown;
shutdown immediate;
startup nomount;
alter database mount standby database;
On the standby again:
alter database commit to switchover to primary WITH SESSION SHUTDOWN;
On the new standby:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;now, and since my primary is RAC when i am trying switch over I am getting the below error:
SQL> alter database commit to switchover to standby with session shutdown;
alter database commit to switchover to standby with session shutdown
ERROR at line 1:
ORA-01105: mount is incompatible with mounts by other instancesPlus that when I want to apply the remaining steps (below step), should I do it on each instance alone? or is there anyway to do it using the srvctl command:
alter database mount standby database;Regards,Hi,
Since You are using 2 node RAc as primary, so for switchover operation you need to shutdown
one database instance( Suppose instance 2).
Suppose your node1:
hostname is dcpdb1
and node 2:
hostname is dcpdb2
and standby hostname is drpdb1
So follow this steps for switchover .
How to Switchover from Primary to Standby Database?
Process:
On the primary server, check the latest archived redo log and force a log switch.
*########### Login dcpdb1 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time
FROM v$archived_log
ORDER BY next_time;
SQL> ALTER SYSTEM SWITCH LOGFILE;
Check the new archived redo log has arrived at the standby server and been applied.
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY next_time ;
*########### Login dcpdb2 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time
FROM v$archived_log
ORDER BY next_time ;
SQL> ALTER SYSTEM SWITCH LOGFILE;
Check the new archived redo log has arrived at the standby server and been applied.
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY next_time ;
*########### Login dcpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO STANDBY
*########### Login dcpdb2 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO STANDBY
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
NOT ALLOWED
*########### Login dcpdb2 as Oracle user #########*
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
*########### Login dcpdb1 as Oracle user #########*
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
Database altered.
SQL>
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL>
SQL> startup mount
ORACLE instance started.
Total System Global Area 1.5400E+10 bytes
Fixed Size 2184872 bytes
Variable Size 7751076184 bytes
Database Buffers 7616856064 bytes
Redo Buffers 29409280 bytes
Database mounted.
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO PRIMARY
SQL>
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
SESSIONS ACTIVE
SQL> alter database commit to switchover to primary with session shutdown;
Database altered.
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup
ORACLE instance started.
Total System Global Area 1.5400E+10 bytes
Fixed Size 2184872 bytes
Variable Size 7717521752 bytes
Database Buffers 7650410496 bytes
Redo Buffers 29409280 bytes
Database mounted.
Database opened.
*########### Login dcpdb1 as Oracle user #########*
SQL> alter database open read only;
Database altered.
SQL> alter database recover managed standby database using current logfile disconnect;
Database altered.
*########### Login dcpdb2 as Oracle user #########*
SQL> startup mount
ORACLE instance started.
Total System Global Area 1.5400E+10 bytes
Fixed Size 2184872 bytes
Variable Size 7751076184 bytes
Database Buffers 7616856064 bytes
Redo Buffers 29409280 bytes
Database mounted.
SQL> alter database open read only;
Database altered.
SQL> alter database recover managed standby database using current logfile disconnect;
Database altered.
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
NOT ALLOWED
SQL>
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO STANDBY
*########### Login dcpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
NOT ALLOWED
SQL>
*########### Login dcpdb2 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
NOT ALLOWED
SQL>
*####################### Finish SwitchOver ########################*
Check
*########### Login drpdb1 as Oracle user #########*
SQL> alter system switch logfile;
SQL>
SELECT sequence#, first_time, next_time
FROM v$archived_log
ORDER BY sequence#;
SQL> archive log list
*########### Login dcpdb1 as Oracle user #########*
SQL>
SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY sequence#;
SQL> archive log list
*########### Login dcpdb2 as Oracle user #########*
SQL>
SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY sequence#;
SQL> archive log list
Thanks
Solaiman
Edited by: 876149 on Apr 12, 2013 11:51 AM -
How to restart Oracle instance from oracle client
I have an Oracle server 10g with DEVEL instance on AIX machine. I have an Oracle Client on Windows machine as well. I want to stop and start the instance DEV from my client using bat file. Is it possible ? Is anybody knows how to do it ?
KP>well, right now the correct question should be : how to start database.
I am able to login as sysdba to DEVEL on AIX ( from Windows client) and shutdown it but when I try to startup it returns such a message:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
but I am still able to tnsping my DEVEL from client ...Post listener status, its contents and entry tnsnames.ora file. Here is how I got connected shutdown and started. The process I followed:
1)Made entry in listener.ora file as I said earlier, restarted the listener
2)Made change in tnsnames.ora file
3)Connect from client shutdown and started.
SQL*Plus: Release 9.0.1.0.1 - Production on Fri Sep 18 16:30:58 2009
(c) Copyright 2001 Oracle Corporation. All rights reserved.
SQL> conn sys/hawaii@ia1dev as sysdba
Connected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 364904448 bytes
Fixed Size 1287356 bytes
Variable Size 226495300 bytes
Database Buffers 130023424 bytes
Redo Buffers 7098368 bytes
Database mounted.
Database opened.
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL>
Regards.
Edited by: virendra.k on Sep 18, 2009 4:36 PM -
Could not able to startup the instance
After shutdown the instance, I could not able to starup the instance. ORA-12203 TNS:UNABLE TO CONNECT TO DESTINATION ,error showing. Database already down, then how to make to startup.
ORA-12203: TNS:unable to connect to destination
Cause: Invalid address specified or destination is not listening. This error can also occur because of underlying network or network transport problems.
Action: Verify that the net service name you entered was correct. Verify that the ADDRESS portion of the connect descriptor which corresponds to the net service name is correct. Ensure that the destination process (for example the listener) is running at the remote node.
Connect with your server. Export ORACLE_HOME and ORACLE_SID. Then login with SQLPLUS as sysdba and startup the instance.
Regards
Asif Kabir -
Startup oracle database using sqlplus
When I going to startup using sql*plus, I was unable to startup due to following error.
ORA-01031: insufficient privileges
so how can I change the privileges and startup oracle database?
Edited by: chanaka on Mar 23, 2011 11:06 PMAlex wrote:
Hi EdStevens,
This forum is for users to help each other and also get some solutions for the issues they have. So users reponse to other users post as per their knowledge. Thats how we should work here. This is not a place to beat someone or just to highligt others mistakes.
So it is good if you post the correct way to do that rather than ONLY HIGHLIGTING SOMEONE ELSE MISTAKE AND NOT EVEN GIVE THE CORRECT WAY TO DO.
Anyway I highly apprcite your comments and I'm posting things here as per my knowledge.I wasn't beating you up, I was simply pointing out the errors in your solution. Of course we all post as per our own knowledge, but when our knowledge is wrong, we should be grateful to have it pointed out rather than get whiny and defensive. That is the only way we increase our knowledge. I've certainly been called out on incorrect information any number of times. Sometimes I've felt embarrassed because I felt should have known better, but I've always been grateful for the correction. Only by having our errors pointed out do we learn that they are errors. And by pointing out the problems with your solution I WAS ALSO SHOWING THE OP THE CORRECT SOLUTION.
You've got to put on your big boy pants around here. If you can't stand the heat .... -
Reducing physical RAM consumption by oracle instance in my laptop
I wanted to reduce the amount of RAM consumed by my Oracle Instance in my machine.
OS: Windows Server 2003
DB version: 10GR2.So i tried to reduce the sga_max_size to 200mb then restarted the instance. But sga_max_size remains the same. What am i doing wrong?
SQL> show parameter sga_max_size
NAME TYPE VALUE
sga_max_size big integer 584M
SQL> alter system set sga_max_size=200m scope=spfile;
System altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 281021316 bytes
Database Buffers 322961408 bytes
Redo Buffers 7135232 bytes
Database mounted.
Database opened.
SQL> show parameter sga_max_size
NAME TYPE VALUE
sga_max_size big integer <font color="red"><b>584M</b></font>You can reduce SGA_MAX_SIZE as well as increase it, but it requires instance restart. The reason you cannot change it is that you have SGA_TARGET set to a higher value, or total value of these parameters is larger than your value for SGA_MAX_SIZE:
shared_pool_size
large_pool_size
java_pool_size
db_cache_size
By the way, if you want to reclaim memory for your OS, you shouldn't worry about SGA_MAX_SIZE. Decrease SGA_TARGET instead.
Message was edited by:
Anvar Huseynov -
Heloo ....
I want to know informtaion about oracle instance.
What is Instance?
what is link between instance and database?
How to create instance?You should check Oracle Concept for the answers.
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref83
An Oracle database is a collection of data treated as a unit.
The database has logical structures and physical structures. Because the physical and logical structures are separate, the physical storage of data can be managed without affecting the access to logical storage structures.
What is Instance?The combination of the background processes and memory buffers is called an Oracle instance.
what is link between instance and database?An Oracle database server consists of an Oracle database and an Oracle instance. Every time a database is started, a system global area (SGA) is allocated and Oracle background processes are started. The combination of the background processes and memory buffers is called an Oracle instance.
How to create instance? use DBCA create a database then you can start the instance. -
Different ways to shutdown and startup instance in 10g
I have just installed 10g on my win2003 server. There seems to be 3 different ways to shutdown / startup an instance in 10g.
1. via SQLPLUS (how its always been) with shutdown and startup commands
2. via the new OEM Web interface
3. Start / Stop the NT Service for the instance
questions:
- Did I miss anything other methods?
- how come OEM ask for O/S login as well as DB login, when shutdown or startup? but via SQLPLUS I only have to login using as DBA? different level of security?
- When shutdown via either SQLPLUS or OEM, the NT service is still shown as "started"? so does this mean that the NT service is more than the oracle instance???
Thanks
Clohow come OEM ask for O/S login as well as DB loginWith SQL*Plus, you are already logged into the Operating System. There is a OS session in progress. With OEM web interface, it has to first start a OS session and then connect to Oracle using Oracle credentials supplied to actually shutdown the DB.
the NT service is still shown as "started"? The difference between NT service started or not started (given that the database was already shutdown) will be:
When NT service is started but the DB is shutdown, your users will get this error message:
Enter user-name: scott
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Enter user-name:When NT service is stopped, your users will get this error message:
Enter user-name: scott
Enter password:
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:The NT service needs to be running for you to be able to do a STARTUP or SHUTDOWN on the database. You will NOT be able to STARTUP if the NT service was not running (STARTUP will not start your NT service automatically). -
DEV and QA within single oracle instance
We need to have our DEV and QA in a single oracle instance. Scripts that refer to tables names in DEV will be copied over to QA for QA testing when unit testing in DEV has been completed. In DEV, we extract data from 5 source systems, one for each US state, which use the same application so the source table names are identical, and therefore in our staging area we have a schema per state such as TX, GA, MD and we extract data into staging tables that are identical to the source tables. Since we do cross state aggregation our scripts have to refer to TX.employee and GA.employee in the same sql statement.
What is the best design for this using SCHEMAS, VIRTUAL PRIVATE DATABASES, VIEWS , SYNONYMS etc?
Thanks in anticipation
Edited by: user4900730 on Mar 22, 2011 2:53 PMuser4900730 wrote:
Just for my knowledge, if I did find myself in this situation would VIRTUAL PRIVATE DATABASES make sense here?I suppose you could potentially use VPD. But that would create major problems if you ever wanted to make schema changes-- you couldn't add a new column to a table in DEV, for example, without that column also being available in QA. You couldn't have code in DEV that didn't exist in QA. I suppose you could get really fancy and use 11g's edition-based redefinition to have a dev edition and a qa edition but I'd hate to think how you'd promote code to prod in that sort of environment. Plus, editions is an enterprise feature (at least, I'm not sure if it's an extra-cost option) which would tend to be beyond the pocketbook of a company trying to save on licensing costs by combining dev & qa in a single non-VM server (let alone in the same instance).
You could potentially have your application use all dynamic SQL so that dev could use the DEV_TX schema while QA used the QA_TEX schema and it was just the TX schema in prod, but that obviously gets old really fast. You could create a single set of synonyms so that the TX_FOO synonym points to DEV_TX.FOO for the dev users and TEST_TX.FOO for the test users but then you'd have to remove the schema qualifiers from all your SQL statements.
In short, an application like you describe trying to share an instance would be a rather massive undertaking.
Justin -
While startup ora -01092: ORACLE instance terminated. Disconnection forced
Hi all,
I'm using Enterprise Linux Red hat 5 (OS), oracle 10g Release 2 (10.2.0.1.0)
while startup the database I'm getting below error message.
SQL> startup pfile='/opt/oracle/admin/ssharp/pfile/init.ora.33201013513' mount;
ORACLE instance started.
Total System Global Area 2147483648 bytes
Fixed Size 1220432 bytes
Variable Size 486539440 bytes
Database Buffers 1644167168 bytes
Redo Buffers 15556608 bytes
Database mounted.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
In alert log file having message, Redo log file s corrupted.
I try to recover the redo log,using
allow_resetlogs_corruption=True parameter in pfile.
and start the DB in mount stage,and
restore database;
alter database open resetlogs;
Using this method i got the same error ora - 01092
and tried to rman incomplete recovery i cant solve issue
*RMAN> run
2> {
3> set until sequence 2284 thread 1;
4> restore database;
5> recover database;
6> alter database open resetlogs;
7> }
executing command: SET until clause
using target database control file instead of recovery catalog
Starting restore at 25-APR-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=761 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=760 devtype=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: sid=758 devtype=DISK
creating datafile fno=20 name=/northeast/oradata/ssharp/main/main03.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/25/2011 13:42:35
ORA-01119: error in creating database file '/northeast/oradata/ssharp/main/main03.dbf'
ORA-27038: created file already exists
Additional information: 1
RMAN> shut immediate
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
RMAN-01008: the bad identifier was: shut
RMAN-01007: at line 1 column 1 file: standard input*
and also i cleared that redolog content,after that also i tried to up the database with resetlog option.but i can't solve...
can any one guide me
Thanks in advanceHi user;
Please see below note which could be helpful on your issue:
database not starting up with errors ORA-01092 ORA-24324 ORA-01041 [ID 779356.1]
Regard
Helios
Maybe you are looking for
-
Hi from few days onwards i found one abnormality in my iphone4s .That is if i observe my phone settings screen from right side of the device top navigation bar appearing rightside height is more than the left side. In reverse manner from the left sid
-
Open Batch file during Runtime
How Can i execute a batch file from java program.? my batch file only have this command """" java Server"""" Server is the name of my java file application.
-
Opening pages in new tab from Bookmark Folder
From my Bookmark bar, I can open up a bookmark in a new tab by Cmd-clicking on it--just like any ol' regular link. But when the bookmark is in a folder, Cmd-clicking opens up in the current tab. I'd like it to open in a new tab. Am I doing something
-
How do I save the progress of TV shows I'm downloading?
I have a VERY slow and unreliable internet connection, as I am currently deployed in Iraq. I'm trying to download some US TV shows that I have purchased, but it is taking approximately 25 hours per episode. Unfortunately, my internet isn't stable eno
-
A year ago or so I was cleaning out my Mac and accidently deleted Pages. I don't remember what version it was, but it came with the iWork 09 pack. Since then I've been using Open Office (which has led to a lot of difficulties), so I asked my father f