473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

i inherited an windows oracle box. when i try to login to database, i get 12560, etc

i inherited an windows oracle box. when i try to login to database, i get 12560, 1033, 19815, 3113, 16014, 19809, 16038. when i log on using [connect sys/{password}@{SID} as sysdba], i get ora 1033. when i log on using [connect / as sysdba], i get ora 12560. the other errors are in the background. i know that i have to increase the size of the recovery file, but i cannot even log in. My tnsnames and listener files are in order. The database services are currently running.

Please help!!
Thanks
Aug 23 '10 #1
7 3299
Expand|Select|Wrap|Line Numbers
  1. The database services are currently running
I doubt that.

You are documenting a couple of mutually exclusive error messages:

ORA-12560 ("TNS:protocol error") when trying a non-SQL*Net connect like "sqlplus / as sysdba" on Windows boxes usually indicates that the (Windows-) service (Usually called OracleService<SID> ) is not started.

ORA-1033 ("ORACLE initialization or shutdown in progress") seems to point to the fact that someone (?) has issued a "shutdown" command, and for whatever reason, the db is not going down

Since nobody will be able to connect to the db (because of the ORA-1033) and you have to bring down the db anyway, I'd suggest the following procedure:

1.) go to windows services and stop the database service, the listener service and (if running) the dbconsole service and the scheduler service.

This should be equal to a "shutdown abort".

2.) edit your %ORACLE_HOME%\database\init<yourSID>.ora file and set the DB_RECOVERY_FILE_DEST_SIZE parameter accordingly (make sure there's enough space on disk for the new value)

3.) in a DOS window type
Expand|Select|Wrap|Line Numbers
  1. oradim -start -sid <yourSID> -pfile=<ORACLE_HOME>\database\init<yourSID>.ora
  2.  
  3. and 
  4.  
  5. lsnrctl start
  6.  
5.) take a full backup.

6.) issue the command
Expand|Select|Wrap|Line Numbers
  1. create spfile from pfile;
6.) in sqlplus:
Expand|Select|Wrap|Line Numbers
  1. shutdown immediate;
  2. startup


P.S.: As always, when no version is mentioned, I assume the latest Version (11.2.0.1.) is used.
Aug 24 '10 #2
I apologize for the omission. This is version 10.2.0. when I searched the directory for the init{sid}.ora file, it wasn't there. Do I create it. There is a init.ora file in a different directory. Is this the same file
Aug 24 '10 #3
If you don't find your init<SID>.ora, you can produce it after Step 1.):

Expand|Select|Wrap|Line Numbers
  1. startup nomount;
  2. create pfile from spfile;
  3.  
Aug 25 '10 #4
when I type in the oradim command, this is what I get


D:\oracle\product\10.2.0\db_1\BIN>oradim -start -sid PPROD -pfile=D:\oracle\product\10.2.0\db_1\database\initP PROD.ora
DIM-00003: An argument is missing for the parameter.

D:\oracle\product\10.2.0\db_1\BIN>oradim -start -sid PPROD -pfile='D:\oracle\product\10.2.0\db_1\database\init PPROD.ora'
DIM-00003: An argument is missing for the parameter.
Aug 25 '10 #5
Now I get ORA 12560 and no longer get the 03301 error. In the alert_pprod.log file I get the following information.


Wed Aug 25 12:10:38 2010
************************************************** **********************
You have following choices to free up space from flash recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
system command was used to delete files, then use RMAN CROSSCHECK and
DELETE EXPIRED commands.
************************************************** **********************
Wed Aug 25 12:10:39 2010
Errors in file d:\oracle\product\10.2.0\admin\pprod\bdump\pprod_a rc1_3468.trc:
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 12816896 bytes disk space from 107374182400 limit

ARC1: Error 19809 Creating archive log file to 'F:\ORACLE\ORACLEBACKUP\PPROD\ARCHIVELOG\2010_08_2 5\O1_MF_1_8348_U_.ARC'
ARCH: Archival stopped, error occurred. Will continue retrying
Wed Aug 25 12:10:39 2010
Errors in file d:\oracle\product\10.2.0\admin\pprod\bdump\pprod_a rc1_3468.trc:
ORA-16038: log 1 sequence# 8348 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 1 thread 1: 'F:\ORACLE\ORADATA\PPROD\LOG1.ORA'
ORA-00312: online log 1 thread 1: 'D:\ORACLE\ORADATA\PPROD\LOG1A.ORA'

Wed Aug 25 12:11:38 2010
ARCH: Archival stopped, error occurred. Will continue retrying
Wed Aug 25 12:11:38 2010
Errors in file d:\oracle\product\10.2.0\admin\pprod\bdump\pprod_a rc0_3464.trc:
ORA-16014: log 1 sequence# 8348 not archived, no available destinations
ORA-00312: online log 1 thread 1: 'F:\ORACLE\ORADATA\PPROD\LOG1.ORA'
ORA-00312: online log 1 thread 1: 'D:\ORACLE\ORADATA\PPROD\LOG1A.ORA'
Aug 25 '10 #6
the sql.net file says


************************************************** *********************
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracl e)(ARGV0=oraclePPROD)(ARGS='(DESCRIPTION=(LOCAL=YE S)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=P PROD)(CID=(PROGRAM=D:\oracle\product\10.2.0\client _1\bin\sqlplus.exe)(HOST=PYRAMED1)(USER=Administra tor))))

VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Time: 25-AUG-2010 12:26:22
Tracing not turned on.
Tns error struct:
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 126
nt OS err code: 0
Aug 25 '10 #7
my listener.log file says

TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production on 25-AUG-2010 12:23:22

Copyright (c) 1991, 2006, Oracle. All rights reserved.

System parameter file is D:\oracle\product\10.2.0\db_1\network\admin\listen er.ora
Log messages written to D:\oracle\product\10.2.0\db_1\network\log\listener .log
Trace information written to D:\oracle\product\10.2.0\db_1\network\trace\listen er.trc
Trace level is currently 0

Started with pid=1080
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PYRAMED1 )(PORT=1521)))
Listener completed notification to CRS on start

TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
25-AUG-2010 12:23:24 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administ rator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LIST ENER)(VERSION=169870080)) * status * 0
25-AUG-2010 12:23:58 * service_register * pprod * 0
25-AUG-2010 12:44:50 * (CONNECT_DATA=(SERVICE_NAME=pprod)(CID=(PROGRAM=C: \Program Files\Media Highway\PyraMED\PyraMED.exe)(HOST=PYRAMED1)(USER=A dministrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.100.80)(PORT=1 049)) * establish * pprod * 0
25-AUG-2010 12:44:53 * (CONNECT_DATA=(SERVICE_NAME=pprod)(CID=(PROGRAM=C: \Program Files\Media Highway\PyraMED\PyraMED.exe)(HOST=PYRAMED1)(USER=A dministrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.100.80)(PORT=1 050)) * establish * pprod * 0
Aug 25 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: James W. Hall Sr. | last post by:
I have a windows application written in VB 6.0 and Microsoft Access. I have 4 customers using it. One of my customers has set up two offices. I have a way of putting the Access database on my...
2
by: harris | last post by:
I am needing some help with a few asp pages and a login script. Let me start by describing my project. I am trying to connect to a database and verify a users login and password, then based on...
1
by: lucy.randles | last post by:
We're implementing automated logins to Oracle, using the users NT password. However, when trying to link in tables through the ODBC datasource in MS Access, we're encountering errors. Because...
6
by: Not Me | last post by:
Hey, We have an sql server 2000 machine and IIS 6 machine running seperately but on the same domain. I can connect fine to the database without using impersonation, but when it's enabled I get...
0
by: kennymce | last post by:
Hi, I'm having trouble localizing my Oracle 9.2 / ASP web application for our Chinese-speaking users. My Oracle 9.2 Database has NLS_NCHAR_CHARACTERSET set to AL16UTF16. I've set up a test...
2
by: Pradipta Chakraborty | last post by:
Hi All gurus, This is Pradipta from kolkata,India. Can anyone help me in configuring oracle 9i standby database configuration on RHEL 4 ? Please give me the steps & procedures in detail.
1
by: Mike001 | last post by:
my question is that for version control for oracle database at object level i.e. at table etc, oracle 10g SCM will be more feasible soultion or alternatively using Visual Source Safe. Prefereably, i...
1
by: =?Utf-8?B?RGVyZWsgTWFr?= | last post by:
I had a Home PC with XP prof on it, I had installed an additional harddisk with XP os on it. After the installation, I tried to boot up my original harddisk with the XP OS, When I start it up, it...
1
by: kumarbhupe | last post by:
How can I change the size of the forms in my Windows application when the screen resolution the user has is higher than the one I developed the application in? I have a customer that has a screen...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.