ORA-02097,ORA-00384 error
I want to use db_recycle_cache_size,I find the size of db_recycle_cache_size is 0,like follows:
SQL> show parameter db_recycle_cache_size
NAME TYPE VALUE
db_recycle_cache_size big integer 0
Then I use alter system command to resize db_recycle_cache_size,like follows:
SQL>alter system set db_recycle_cache_size=1M
ORA-02097:, parameter cannot be modified because specified value is invalid.
ORA-00384: Insufficient memory to grow cache To get around this problem
But I got above error. DB_BLOCK_SIZE is 8M and db_cache_size is 24M,there is enough memory space left,why I can't resize the value of db_recycle_cache_size? I have try many value of db_recycle_cache_size,all fail except 0 is success,why?
SQL>alter system set db_recycle_cache_size=1
ORA-02097:, parameter cannot be modified because specified value is invalid.
ORA-00384: Insufficient memory to grow cache To get around this problem
SQL>alter system set db_recycle_cache_size=0
success
SQL> show parameter DB_BLOCK_SIZE
NAME TYPE VALUE
db_block_size integer 8192
SQL> show parameter db_cache_size
NAME TYPE VALUE
db_cache_size big integer 25165824
Hi,
DB_BLOCK_SIZE is 8M aErrrr, nah, it's 8KiB :-)
ORA-02097:, parameter cannot be modified because specified value is invalid.Error message is self explanatory.. your value is wrong, but it's wrong because of:
ORA-00384: Insufficient memory to grow cache To get around this problemSo, as you're using db_recycle_cache_size, you're using 9i or 10g.
My first advice would be: you must read the concepts manual about:
. SGA_MAX_SIZE
. Dynamic memory pools
. Granule
Now, a little sample:TEST>SELECT * FROM V$VERSION WHERE ROWNUM=1;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
TEST>SELECT DISTINCT GRANULE_SIZE/1024/1024 "The memory unit allocation" FROM V$SGA_DYNAMIC_COMPONENTS;
The memory unit allocation
16
TEST>SELECT COMPONENT, CURRENT_SIZE FROM V$SGA_DYNAMIC_COMPONENTS;
COMPONENT CURRENT_SIZE
shared pool 117440512
large pool 0
buffer cache 5251268608
TEST>SELECT LPAD(CURRENT_SIZE/1024/1024,5) || ' MiB' "Free space in memory" FROM V$SGA_DYNAMIC_FREE_MEMORY;
Free space in memory
0 MiB
TEST>-- So I got nothing available in memory!
TEST>-- In order to create the recycle cache, I will have to reduce the buffer cache size of 16M, in order to give the 16M to the recycle
TEST>
TEST>-- Or I'd get the same error as you
TEST>
TEST>ALTER SYSTEM SET DB_RECYCLE_CACHE_SIZE=16M;
ALTER SYSTEM SET DB_RECYCLE_CACHE_SIZE=16M
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00384: Insufficient memory to grow cache
TEST>SELECT 5251268608 / 1024 / 1024 FROM DUAL;
5251268608/1024/1024
5008
TEST>SELECT 5008 - 16 FROM DUAL;
5008-16
4992
TEST>ALTER SYSTEM SET DB_CACHE_SIZE=4992M;
System altered.
TEST>-- Now, I got 16M of free memory
TEST>SELECT LPAD(CURRENT_SIZE/1024/1024,5) || ' MiB' "Free space in memory" FROM V$SGA_DYNAMIC_FREE_MEMORY;
Free space in memory
16 MiB
TEST>ALTER SYSTEM SET DB_RECYCLE_CACHE_SIZE=16M;
System altered.
TEST>-- Bingo!
TEST>spool offRegards,
Yoann.
Similar Messages
-
AlertfileErr: ORA-02097 and ORA-00439 on Oracle 10g Rel 2 Stdrd Instances
Hello,
I need some help for the following alert file erros, that I get periodically on every database instance.
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00439: feature not enabled: Database resource manager
I red in another newsforum, that this ist a bug, cause Oracle Standard Edition uses functionality of the Enterprise Edition(=DB Resource manager). Is there any workaround for this? I don't have access to the Oracle metalink section.
Database Resource Manager isn't installed in my environment.
Environment:
Windows 2003 SP1
Oracle Database 10g Rel 2 (10.2.0.1) Standard Edition
Hope anybody can help me.
Thanks in advance,
ZigiYes,
and That's exactly my problem. I haven't installed the resource manager. And I don't know which process, session, jobs or what ever tries to use the resource manager.
I only created round about 50 Tables and views in the database, no stored procedures or anything special, no jobs.... only simple SQL Statements.
and I'll get this message nearly every 6 hours. so what is going on there.
The only thing, that i found was this:
http://ora-02097.ora-code.com/msg/49049.html
I don't have access to metalink so I don't know how to solve this problem.
Can anybody help? -
Hi,
Anybody out there can help me out with this.i am getting these ORA 02097 and ORA 00439 msg constantly.how can i solw these.plz explain.
Thanx in advance
Navneet KaurHi,
See
http://ora-02097.ora-code.com/
http://ora-00439.ora-code.com/
Cheers,
Colin -
I have a 10g database over linux with archive mode activated. Now i want to create a new destination for the Flas recovery area and the Archive logs because both are in a file system and this is very small the size of 10 GB and is full now.
My question is how i can change the path to another brand new, i try on Enterprise manager and SQL Plus and get the same error: ORA-02097 and ORA-00384.
So i will aprecciate your anwers because i had no space left for the archive logs,
Thanks,
Carlos Robles.Why not just create a symbolic link in the file system?
That said the proper thing to do is what you are trying but given you didn't post a version number and didn't post your DDL and didn't post the error messages we can't really help you.
I know what you're thinking so here are the details:
Version numbers look like this: 10.2.0.4
Exceptions have numbers and text ... without the text the number is near worthless
We have no idea what ALTER SYSTEM statement you tried: Post it.
The docs are here:
http://tahiti.oracle.com -
ORA-02097 when set parameter REMOTE_LISTENER
We have a 3 node RAC of 11.2 on Redhat Linux 2.5. We installed the grid infrastructure and has the 3 listeners start in grid_home with identical listener.ora like LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
LISTENER_CCHPRD =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb2-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb3-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb2)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = cchORdb3)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=OFF # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by AgentThe 3 listeners on the 3 nodes all have the similar status:Listener Parameter File /u01/app/grid/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/cchORdb3/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.2.0.52)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.2.0.152)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "cchprd" has 3 instance(s).
Instance "cchprd1", status READY, has 2 handler(s) for this service...
Instance "cchprd2", status READY, has 3 handler(s) for this service...
Instance "cchprd3", status READY, has 2 handler(s) for this service...
Service "cchprdXDB" has 3 instance(s).
Instance "cchprd1", status READY, has 1 handler(s) for this service...
Instance "cchprd2", status READY, has 1 handler(s) for this service...
Instance "cchprd3", status READY, has 1 handler(s) for this service...
The command completed successfullyAccording to helps of the Furom and Oracle doc in http://www.oracle.com/technology/products/database/clustering/pdf/scan.pdf, we need to set the parameter REMOTE_LISTENER=SCAN:PORT. To find the SCAN name[oracle@cchORdb1 ~]$ srvctl config scan
SCAN name: cchORdb-rac, Network: 1/10.2.0.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /cchORdb/10.2.0.250
[oracle@cchORdb1 ~]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521Now set the parameter from instance 2 SQL> select instance_name from v$instance;
INSTANCE_NAME
cchprd2
SQL> alter system set remote_listener ='cchORdb-rac' scope=both;
alter system set remote_listener ='cchORdb-rac' scope=both
ERROR at line 1:
ORA-32008: error while processing parameter update at instance cchprd3
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00119: invalid specification for system parameter REMOTE_LISTENER
ORA-00132: syntax error or unresolved network name 'cchORdb-rac'
ORA-32008: error while processing parameter update at instance cchprd1
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00119: invalid specification for system parameter REMOTE_LISTENER
ORA-00132: syntax error or unresolved network name 'cchORdb-rac'Sorry for the long post, but here are the short questions:
1) Why 'alter system set remote_listener ='cchORdb-rac' scope=both' does not work?
2) I suspect the listener.ora may not very good. I could not find any docs on how to configure listener.ora in Oracle 11.2 RAC. It was said that it is not documented yet. Can some one share with me your listener.ora files and the listener status as output of lsnrctl status.
Thanks.try setting with the port number
example
alter system set remote_listener ='cchORdb-rac:1521' scope=both; -
ORA-16024: - ORA-32004 - Parameter modification Error
Hi all,
I have two errors after modifying the LOG_ARCHIVE_DEST_1 parameter. I've run this...
ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=/u04/archive/EST OPTIONAL REOPEN=300' SCOPE=spfile;
and after restarting the instance, I found these errors
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed
I checked the spfile and I discovered an error in it due this change:
*.log_archive_dest_1='LOCATION=/u04/archive/EST OPTIONAL REPO^H^HOPEN=300'
"^H^H" these characters were inserted because an stty config error and I was not able to see them.
How should I procede to recover my instance?
ThanksThanks! I really appreciate your help!
I have no need to do a recovery, I just wanted to say only bringing it open again.
I am not able to start it up in nomount mode...
Thanks by your help!
EdStevens wrote:
martinmorono wrote:
Hi all,
I have two errors after modifying the LOG_ARCHIVE_DEST_1 parameter. I've run this...
ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=/u04/archive/EST OPTIONAL REOPEN=300' SCOPE=spfile;
and after restarting the instance, I found these errors
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed
I checked the spfile and I discovered an error in it due this change:
*.log_archive_dest_1='LOCATION=/u04/archive/EST OPTIONAL REPO^H^HOPEN=300'
"^H^H" these characters were inserted because an stty config error and I was not able to see them.
How should I procede to recover my instance?
ThanksFirst, is your instance in need of recovery? these look like non-fatal errors to me. Since you had intended that archive destination to be optional, I presume you have another, non-optional, destination that is good?
Are you able to do a 'startup nomount'? That's as far as you need to get to issue ALTER SYSTEM commands against the spfile to correct the bad value.
And btw, you didn't need to bounce the system in the first place. log_archive_dest_n is a dynamic parameter - you could have specified scope=both and kept on trucking - or gotten an error at that time:
SQL> alter system set log_archive_dest_2='location=c: lksdjf optional' scope=both;
alter system set log_archive_dest_2='location=c: lksdjf optional' scope=both
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16024: parameter LOG_ARCHIVE_DEST_2 cannot be parsed
SQL> alter system set log_archive_dest_2='location=c:\temp optional' scope=both
System altered.
SQL> alter system set log_archive_dest_2='' scope=both;
System altered.
SQL> -
ORA-02097: parameter cannot be modified
Hi,
today morning in my ALERTLOG I have this :
Unable to restore resource manager plan to '':
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00439: feature not enabled: Database resource manager
How can I see which parameter that cannot be modified was asked ?
Many thanks before.Hi
this is due to bug 4343398.8 - the details of which are below.
Bug 4343398 Alert log reports ORA-2097 / ORA-439 on 10.1.0.4 Standard Edition
This note gives a brief overview of bug 4343398.
Affects:
Product (Component) Oracle Server (Rdbms)
Range of versions believed to be affected Versions >= 10.1.0.4
Versions confirmed as being affected
* 10.1.0.4
* 10.1.0.5
* 10.2.0.2
Platforms affected Generic (all / most platforms affected)
It is believed to be a regression in default behaviour thus:
Regression introduced in 10.1.0.4
Fixed:
This issue is fixed in
* 10.2.0.3 (Server Patch Set)
Symptoms:
Related To:
* Error May Occur
* ORA-2097 / ORA-439
* (None Specified)
Description
This problem is introduced in 10.1.0.4 Standard Edition
by the fix for bug 4039780 .
In Standard Edition 10.1.0.4 errors such as those below
can appear in the alert log periodically:
Unable to restore resource manager plan to '':
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00439: feature not enabled: Database resource manager
These errors can be ignored as resource manager is not enabled in
Standard Edition.
Hope that helps ! -
Error: ORA-16778: redo transport error for one or more databases
Hi all
I have 2 database servers"Primary database and physical standby" in test environment( before going to Production)
Before Dataguard broker configuration , DG setup was running fine , redo was being applied and archived on phy standby.
but while enabling configuration i got "Warning: ORA-16607: one or more databases have failed" listener.ora & tnsnames.ora are updated with global_name_DGMGRL
Please help me how can i resolve this issue .Thanks in advance.
[oracle@PRIM ~]$ dgmgrl
DGMGRL for Linux: Version 10.2.0.1.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect sys
Password:
Connected.
DGMGRL> show configuration
Configuration
Name: test
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
Warning: ORA-16607: one or more databases have failed
DGMGRL> show database
show database
^
Syntax error before or at "end-of-line"
DGMGRL> remove configuration
Warning: ORA-16620: one or more databases could not be contacted for a delete operation
Removed configuration
DGMGRL> exit
[oracle@PRIM ~]$ connect sys/sys@prim as sysdba
bash: connect: command not found
[oracle@PRIM ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:30
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
[oracle@PRIM ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:48
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 08-OCT-2006 19:52:48
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PRIM_DGMGRLL" has 1 instance(s).
Instance "PRIM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@PRIM ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:46
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
[oracle@PRIM ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:59
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
[oracle@PRIM ~]$ dgmgrl
DGMGRL for Linux: Version 10.2.0.1.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect /
Connected.
DGMGRL> create configuration test as
primary database is PRIM
connect identifier is PRIM
;Configuration "test" created with primary database "prim"
DGMGRL> add database STAN as
connect identifier is STAN
maintained as physical;Database "stan" added
DGMGRL> show configuration
Configuration
Name: test
Enabled: NO
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
DISABLED
DGMGRL> enable configuration
Enabled.
DGMGRL> show configuration
Configuration
Name: test
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
Warning: ORA-16607: one or more databases have failed
DGMGRL> show database verbose prim
Database
Name: prim
Role: PRIMARY
Enabled: YES
Intended State: ONLINE
Instance(s):
PRIM
Properties:
InitialConnectIdentifier = 'prim'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
LogFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'PRIM'
SidName = 'PRIM'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521))'
StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/PRIM/archivelog/'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "prim":
Error: ORA-16778: redo transport error for one or more databases
DGMGRL> show database verbose stan
Database
Name: stan
Role: PHYSICAL STANDBY
Enabled: YES
Intended State: ONLINE
Instance(s):
STAN
Properties:
InitialConnectIdentifier = 'stan'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
LogFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'STAND'
SidName = 'STAN'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=STAND)(PORT=1521))'
StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/STAN/archivelog/'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "stan":
Error: ORA-12545: Connect failed because target host or object does not exist
DGMGRL>This:
Current status for "stan":
Error: ORA-12545: Connect failed because target host or object does not exist
says that your network setup is not correct. You need to resolve that first.
As for Broker setup steps how about the doc or our Data Guard 11g Handbook?
It's 3 DGMGRL commands so I am not sure what 'steps' you need?
Larry -
Recieving ORA-01722 invalid number error while creating a materialized view
Hi,
I am receiving a ORA-01722 invalid number error while creating a materialized view. when run the select statement of the view i don't get any error, but when i use the same select statement to create a materialized view i receive this error. Could any please help in resolving this error. Here is the code i am using to create a materialized view.
CREATE MATERIALIZED VIEW MV_EBS_CH_CLOSED
REFRESH FORCE ON DEMAND
AS
SELECT DISTINCT kr.request_id, org.org_unit_name,
ebs_ch_ticket_type (kr.request_id) ticket_type,
DECODE
(kr.status_code,
'CLOSED_SUCCESS', kr.last_update_date,
'IN_PROGRESS', (SELECT MAX (start_time)
FROM ebs_ch_datastore ecd1
WHERE kr.request_id = ecd1.request_id
AND workflow_step_name =
'Final BA Review and Deployment Exit Criteria')
) closed_date,
substr(krhd.visible_parameter12,1,10) siebel_start_date,
kr.creation_date itg_start_date
FROM kcrt_requests kr,
kcrt_request_types krt,
kcrt_req_header_details krhd, kcrt_request_details krd1,
(SELECT koum.user_id user_id,
DECODE (koup.org_unit_name,
'IT Implementations', 'CHS - Service Management BA',
koup.org_unit_name
) org_unit_name
FROM krsc_org_unit_members koum, krsc_org_units koup
WHERE 1 = 1
AND 'Y' = koup.enabled_flag
AND koum.org_unit_id = koup.org_unit_id
AND EXISTS (
SELECT 'X'
FROM krsc_org_units kouc
WHERE koup.org_unit_id = kouc.org_unit_id
START WITH kouc.parent_org_unit_id =
ANY (SELECT org_unit_id
FROM krsc_org_units krsc_org_units1
WHERE 'Clearinghouse' =
org_unit_name)
CONNECT BY kouc.parent_org_unit_id =
PRIOR kouc.org_unit_id)
UNION
SELECT kou.manager_id user_id,
DECODE
(kou.org_unit_name,
'IT Implementations', 'CHS - Service Management BA',
kou.org_unit_name
) org_unit_name
FROM krsc_org_units kou
WHERE 'Y' = kou.enabled_flag
START WITH kou.parent_org_unit_id =
(SELECT org_unit_id
FROM krsc_org_units krsc_org_units2
WHERE 'Clearinghouse' = org_unit_name)
CONNECT BY kou.parent_org_unit_id = PRIOR kou.org_unit_id) org
WHERE krt.request_type_id = kr.request_type_id
AND krt.request_type_name IN ('Bug Fix', 'IT Enhancement')
and kr.REQUEST_ID = krd1.request_id
and krd1.batch_number = 1
AND kr.request_id = krhd.request_id
AND org.user_id in (krd1.parameter4, krd1.parameter5, krd1.parameter7)
AND ( 'CLOSED_SUCCESS' = kr.status_code
OR 'IN_PROGRESS' = kr.status_code
AND kr.request_id IN (
SELECT request_id
FROM (SELECT DISTINCT request_id,
MAX
(start_time)
closed_date
FROM ebs_ch_datastore
WHERE 'Final BA Review and Deployment Exit Criteria' =
workflow_step_name
GROUP BY request_id))
Thanks,
Shaik MohiuddinThis error occurs when you try to create a materialized view , but if you run the sql the results are perfectly fine. Well it happend to me also and to fix this I made sure all the coulmns have the same data type which are used in joins or in where clause.
use
where
to_number(col1)=to_number(col2) and to_number(col3)=to_number(col4)
hope this helps.. -
How to determine offending column in ORA-01722: invalid number error ...
When an error like
ORA-01722: invalid number error
occurs and you are dealing with many columns that could be the 'culprit', does anyone have a method by which
you can quickly determine offending column?SQL PLus will tell you:
SQL> create table t
2 (col1 number
3 ,col2 number
4 ,col3 number
5 ,col4 number
6 ,col5 number
7 );
Table created.
SQL> create table x
2 (col1 varchar2(10)
3 ,col2 varchar2(10)
4 ,col3 varchar2(10)
5 ,col4 varchar2(10)
6 ,col5 varchar2(10)
7 );
Table created.
SQL> insert into x values ('1','2','x','4','5');
1 row created.
SQL> insert into t(col1,col2,col3,col4,col5)
2 select col1,col2,col3,col4,col5 from x;
select col1,col2,col3,col4,col5 from x
ERROR at line 2:
ORA-01722: invalid numberAnd if you rearrange your sql like this, sql plus will give you the line number of the offending column:
SQL> insert into t
2 (col1
3 ,col2
4 ,col3
5 ,col4
6 ,col5
7 )
8 select col1
9 ,col2
10 ,col3
11 ,col4
12 ,col5
13 from x;
,col3
ERROR at line 10:
ORA-01722: invalid number -
Please help: Case Statement - ORA-01722: invalid number Error
Hi All,
I'm trying to use Case statement to recode Cancelled statuses into two groups
'Reject' if the difference between first date and last date is less than 29 and
'Accept' if the difference between first date and last date is greater than 30
Here is my 'test' data:
STATUS FIRST_DATE LAST_DATE
Transfer 10/08/2011 10/09/2011
Mover 10/08/2011 15/09/2011
Cancel 10/08/2011 16/09/2011
Cancel 10/08/2011 5/09/2011
Here is the syntax
select a.*,
(CASE WHEN a.STATUS ='Cancel' THEN (round(a.LAST_DATE-a.FIRST_DATE))
ELSE 0
END) CAN_DAYS,
(CASE WHEN 'CAN_DAYS' >29 THEN 'Reject'
WHEN 'CAN_DAYS' <30 THEN 'Accept'
END) Reject_Accept
from test a
The first CASE statement works fine and gives me this
STATUS FIRST_DATE LAST_DATE CAN_DAYS
Transfer 10/08/2011 10/09/2011 0
Mover 10/08/2011 15/09/2011 0
Cancel 10/08/2011 16/09/2011 37
Cancel 10/08/2011 5/09/2011 26
but the second CASE produces ORA-01722: invalid number Error. It is something to do with the CAN_DAYS data type, Oracle doesn't see it as Numeric i think.
The result i want to see would be
STATUS FIRST_DATE LAST_DATE CAN_DAYS Reject_Accept
Transfer 10/08/2011 10/09/2011 0
Mover 10/08/2011 15/09/2011 0
Cancel 10/08/2011 16/09/2011 37 Accept
Cancel 10/08/2011 5/09/2011 26 Reject
Could someone please help me to fix the syntax?
Thank you in advance,This seems to give you your desired results...
with test as
( select 'Transfer' as status, to_date('10/08/2011') as first_date, to_date('10/09/2011') as last_date from dual union all
select 'Mover' , to_date('10/08/2011') , to_date('15/09/2011') from dual union all
select 'Cancel' , to_date('10/08/2011') , to_date('16/09/2011') from dual union all
select 'Cancel' , to_date('10/08/2011') , to_date('05/09/2011') from dual
select status
, first_date
, last_date
, CAN_DAYS
, CASE
WHEN CAN_DAYS = 0 THEN NULL
WHEN CAN_DAYS < 30 THEN 'Reject'
WHEN CAN_DAYS >= 30 THEN 'Accept'
END Reject_Accept
from ( select status
, first_date
, last_date
, CASE
WHEN STATUS ='Cancel' THEN round(LAST_DATE-FIRST_DATE)
ELSE 0
END CAN_DAYS
from test
; -
ORA-01722: invalid number error. In Update
create or replace procedure San_Test (sInNum varchar2, outMsg out varchar2)
is
begin
update mtest set
mname = 'Success'
where id in (sInNum);
commit;
outMsg :='Success';
exception
when others then
outMsg :='Err';
dbms_output.put_line(sqlerrm);
end;
This is my test sp where i am getting ORA-01722: invalid number error.
Which is because the column data type is Number of ID and i have sInNum parameter as varchar2.. How can i achieve this ?
I don't have other way to do this please help.Great demonstration for SQL INJECTION, was that part of your OCP training?
CREATE TABLE mtest (id NUMBER, mname VARCHAR2(255));
INSERT INTO mtest VALUES (1, 'test');
INSERT INTO mtest VALUES (2, 'test2');
COMMIT;
CREATE OR REPLACE PROCEDURE san_test (sinnum VARCHAR2, outmsg OUT VARCHAR2)
IS
mnum VARCHAR2 (10);
strsql VARCHAR2 (250);
BEGIN
mnum := REPLACE (sinnum, '''', '');
strsql :=
'update mtest set
mname = ''Success''
where id in (' || mnum || ')';
EXECUTE IMMEDIATE strsql;
COMMIT;
outmsg := 'Success';
EXCEPTION
WHEN OTHERS
THEN
outmsg := 'Err';
DBMS_OUTPUT.put_line (SQLERRM);
END;
SELECT *
FROM mtest;
ID MNAME
1 test
2 test2And now for the fun part:
SET SERVEROUTPUT ON
DECLARE
v_put_msg VARCHAR2(255);
BEGIN
san_test('1) OR (1=1', v_put_msg);
dbms_output.put_line(v_put_msg);
COMMIT;
END;
SELECT *
FROM mtest;
ID MNAME
1 Success
2 SuccessC. -
ORA-01722: invalid number (Error in Application after upgrade to 3.0)
Dear All,
After upgrading to 3.0 I am no longer able to login to my application. The error I am seeing is:
ORA-01722: invalid number
Error Could not process show_hide_memory.show_hide_collection_output procedure !
Please help me pin-point the issue and fixed it.
This happens in some applications but in others it doesn't...
Regards,
Pawel.I believe I have found the source of the problem!
This is coming from the sample application which was used for the show/hide of regions example.
The code behind the above procedure is:
CREATE OR REPLACE
PACKAGE show_hide_memory AS
PROCEDURE show_hide_collection;
PROCEDURE show_hide_collection_output;
END;
CREATE OR REPLACE PACKAGE BODY show_hide_memory AS
PROCEDURE show_hide_collection AS
l_arr apex_application_global.vc_arr2;
l_found boolean := FALSE;
l_collection_name VARCHAR2(255) := 'SHOW_HIDE_COLLECTION';
BEGIN
IF(wwv_flow_collection.collection_exists(p_collection_name => l_collection_name) = FALSE) THEN
htmldb_collection.create_or_truncate_collection(p_collection_name => l_collection_name);
END IF;
l_arr := apex_util.string_to_table(p_string => v('TEMPORARY_ITEM'), p_separator => ']');
-- If the array member count of l_arr < 3, then the following code will raise an exception
FOR c1 IN
(SELECT seq_id
FROM apex_collections
WHERE collection_name = l_collection_name
AND c001 = l_arr(1)
AND c002 = l_arr(2)
AND c003 = l_arr(3))
LOOP
-- It exists, so delete it
apex_collection.delete_member(p_collection_name => l_collection_name, p_seq => c1.seq_id);
l_found := TRUE;
END LOOP;
IF l_found = FALSE THEN
apex_collection.add_member(p_collection_name => l_collection_name, p_c001 => l_arr(1), p_c002 => l_arr(2), p_c003 => l_arr(3));
END IF;
COMMIT;
END show_hide_collection;
PROCEDURE show_hide_collection_output AS
BEGIN
htp.prn('<script type="text/javascript">' || CHR(10));
htp.prn('<!--' || CHR(10));
htp.prn('window.onload=function(){' || CHR(10));
FOR c1 IN
(SELECT c003
FROM apex_collections
WHERE collection_name = 'SHOW_HIDE_COLLECTION'
AND c001 = wwv_flow.g_flow_id
AND c002 = wwv_flow.g_flow_step_id)
LOOP
htp.prn('htmldb_ToggleWithImage(''' || c1.c003 || 'img'',''' || c1.c003 || 'body'');' || CHR(10));
END LOOP;
htp.prn('}' || CHR(10));
htp.prn('//-->' || CHR(10));
htp.prn('</script>' || CHR(10));
END show_hide_collection_output;
END;
I guess now I have to find the bug in the above code ! -
ORA-01722 Invalid Number Error - report parameter
I have a report which runs successfully using the following simple select statement: -
select u.user_id, u.user_forename||' '||u.user_surname user_name,
fo.flight_number_in, fo.sta, fo.ata, fo.flight_number_out, fo.std, fo.atd
from users u, flight_operations_employees foe, flight_operations fo
where NVL(fo.sta, fo.std) between :P_Start and :P_End and
fo.record_number = foe.record_number and
u.user_id = foe.user_id
order by u.user_surname
Where P_Start and P_End are parameters passed from a form. I want to add further user option selections for the report and have added another parameter (P_inClause) where the user can select one or more items to select from. The column selected is a number on the table. I then want to pass this as another parameter into the report listing a number of valid values using the IN statement. The updated select statement is: -
select u.user_id, u.user_forename||' '||u.user_surname user_name,
fo.flight_number_in, fo.sta, fo.ata, fo.flight_number_out, fo.std, fo.atd
from users u, flight_operations_employees foe, flight_operations fo
where NVL(fo.sta, fo.std) between :P_Start and :P_End and
fo.record_number = foe.record_number and
u.user_id = foe.user_id and
u.user_id IN :P_inClauseorder by u.user_surname
u.user_id is a number column in the table. The value of P_inClause is set as a character parameter in the report and has the value (45,5,13,26) - as an example.
When I try running the report interactively it comes up with the ORA-01722 : Invalid Number error and points to the P_inClause parameter. If I type in the value directly into the select statement it works fine.
Do you have any ideas as to how I can make this work?
Regards
Edited by: Buzzer on Apr 13, 2011 12:44 PMYou can search this forum for "in clause", e.g.:
Re: how to pass values to where conditon -
Ora-01722 invalid number error within view
Hi, in my oracle 9.2.0.4.0 db, under TEST schema i've a view called PRODUTTIVITA_LINEE. I'm trying to create another view joining PRODUTTIVITA_LINEE with a table called LINEE. But when i execute the select (SELECT PRODUTTIVITA_LINEE.*, LINEE.NAME FROM PRODUTTIVITA_LINEE, LINEE WHERE PRODUTTIVITA_LINEE.LINEA_ID = LINEE.LINEA_ID), i obtain the ORA-01722 invalid number error.
But if i create a table PRODUTTIVITA_SUPPORT as select all fields from PRODUTTIVITA_LINEE and i use it in the new query (SELECT PRODUTTIVITA_SUPPORT.*, LINEE.NAME FROM PRODUTTIVITA_SUPPORT, LINEE WHERE PRODUTTIVITA_SUPPORT.LINEA_ID = LINEE.LINEA_ID), all works.
Using the view, the new query doesn't work, but using the same data toke from a table instead of view, all works. Why?Excuse me but i send modified script. Here the original script of object.
SQL> desc PRODUTTIVITA_LINEE;
Nome Nullo? Tipe
LINEA_ID NUMBER(9)
COD_LINEA_ANDATA VARCHAR2(8)
COD_LINEA_RITORNO VARCHAR2(4)
ID_TRAT_PIC_ANDATA NUMBER
ID_TRAT_PIC_RITORNO NUMBER
DESC_LINEA VARCHAR2(120)
EKM_NOMINALI NUMBER
EKM_SCONTATI NUMBER
KMLINEA NUMBER
ANNO NUMBER SQL> desc PRODUTTIVITA_SUPPORT;
Nome Nullo? Tipe
LINEA_ID NUMBER(9)
COD_LINEA_ANDATA VARCHAR2(8)
COD_LINEA_RITORNO VARCHAR2(4)
ID_TRAT_PIC_ANDATA NUMBER
ID_TRAT_PIC_RITORNO NUMBER
DESC_LINEA VARCHAR2(120)
EKM_NOMINALI NUMBER
EKM_SCONTATI NUMBER
KMLINEA NUMBER
ANNO NUMBER Both objects have 5400 records and are the same.
Maybe you are looking for
-
I logged into my Ipod touch 5 gen just to download sometime I already downloaded. My brother did some purchases on the Ipod, ( using my account) I kept getting emails on my phone saying an item was downloaded 3 times, so I kept getting multiple charg
-
Soap receiver adapter payload with certficate signature
I have a requirement.. where XI calls external webservice using SOAP. I have configured SOAP receiver adapter, but the webservice wants the certificate authentication.. From XI we sent the certficate to external webservice and then in the comm channe
-
Help with connecting Nintendo dsi to internet
I really need some help with connecting my daughters nintendo dsi to the internet, I have tried everything but just can't get it to work. Would really appreciate any advice....
-
Scratch file program error?
I've gotten this a couple of times recently. Scratch is on a separate disc and large enough. This was a from a 2 x 2" document as I was trying to paste a smart object from Illustrator. Any ideas?
-
Wireless transmissi​on???
hey in my project i need to tranfer data from one pc to another ,well my options for tranmission were initially using DAQ card but now i am thinking to do the transmission wireless....is there anyway of sending information fro one pc to another pc