ORA-15032,ORA-15040:,ORA-15042:
hi,
unfortunatly our server get rebooted after taht we are try to start ASM instance then we got below error
ora-15040 diskgroup is incomplete ORA-15042 ASM Disk"2" is missing.but we are checking from OS side all disk are OK.all the Diskgroup are in external rededuncy.
GROUP_NUMBER NAME TYPE OFFLINE_DISKS U STATE
1 DG_GROUP1 EXTERN 0 N MOUNTED
2 DG_GROUP2 EXTERN 0 N MOUNTED
3 DG_GROUP4 EXTERN 0 N MOUNTED
0 DG_GROUP3 0 N DISMOUNTED
when i m mount th diskgroup usging below query we have got error
SQL> alter diskgroup DG_GROUP3 mount;
alter diskgroup DG_GROUP3 mount
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15040: diskgroup is incomplete
ORA-15042: ASM disk "2" is missing
what steps we need to perform to start the ASM does it causeess the data loss.how we can recover the database.
thanks,
Hi;
1. Check this disk avaliable or not
2. There are seeded ASM forum site. I suggest close your issue here as answered than move your issue Forum Home » High Availability »Automatic Storage Management which is dedicated forum site.
Regard
Helios
Similar Messages
-
ORA-15032 and ORA-15177 alter diskgroup rename directory
Hi,
Oracle 11.2.0.1, Oracle Linux 5.5
I would like to do some RMAN testing and for this reason rename an existing directory in an ASM diskgroup, temporarily.
The database 'orcl' instance is shutdown. I have tried the following using the ASM/Grid environment:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option
SQL> alter diskgroup DATA rename directory '+DATA/ORCL' TO '+DATA/OLDORCL';
alter diskgroup DATA rename directory '+DATA/ORCL' TO '+DATA/OLDORCL'
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15177: cannot operate on system aliases
ASMCMD> ls -l
Type Redund Striped Time Sys Name
Y ASM/
Y ORCL/
Y RCAT/
ASMCMD> ls -l ORCL
Type Redund Striped Time Sys Name
Y CONTROLFILE/
Y DATAFILE/
Y ONLINELOG/
Y PARAMETERFILE/
Y TEMPFILE/
N spfileorcl.ora => +DATA/ORCL/PARAMETERFILE/spfile.270.737565081I also removed the alias inside the ORCL directory, but it does not help. How can I rename the directory?
Thanks.Hi,
Unfortunately we can not do this. It's a shame.
ASM disk groups contain a system-generated hierarchical directory structure for storing ASM files. System created directories (those containing system-generated names) cannot be renamed.
http://download.oracle.com/docs/cd/E11882_01/server.112/e16102/asmfiles.htm#CIHGHHCC
See this note below.. Maybe this can help you.
*How to rename/move a datafile in the same ASM diskgroup [ID 564993.1]*
Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.1.0.6
Regards,
Levi Pereira
http://levipereira.wordpress.com -
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating pr
I'm running Oracle 11gR2 with ASM configuration on LINUX 5 and I noticed the following errors in the alert log. Any ideas.
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30988
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30572
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 32040
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 32179
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 29693
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30350
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30483
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30963
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 29907
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 29962
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 31000
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 29988
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30983
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 31900
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 32171
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 29901
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30456
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30475
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30069
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30899
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30403
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30540
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 29650
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30550
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30236
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 29673
Tue Oct 18 14:10:51 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30888
Tue Oct 18 14:10:52 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 30090
Tue Oct 18 14:10:52 2011
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 29638this is what i'm getting in the asm alert.log
Tue Oct 18 15:34:05 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_6938.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:6938
Tue Oct 18 22:08:15 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_18992.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:18992
Tue Oct 18 22:08:15 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_18994.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:18994
Tue Oct 18 22:08:16 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_18998.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:18998
Tue Oct 18 22:08:18 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_19002.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:19002
Wed Oct 19 09:28:54 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_8389.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:8389
Wed Oct 19 09:41:31 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_9608.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:9608
Wed Oct 19 09:46:05 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_9608.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:9608
Wed Oct 19 09:46:17 2011
Errors in file /opt/bsaitmod/oracle/app/oracle/diag/asm/+asm/+ASM/trace/+ASM_ora_9608.trc:
ORA-27070: async read/write failed
WARNING: IO Failed. group:0 disk(number.incarnation):7.0xe96844c9 disk_path:/dev/random
AU:0 disk_offset(bytes):0 io_size:4096 operation:Read type:asynchronous
result:I/O error process_id:9608 -
Unrecoverable error ORA-15032 raised in ASM I/O path;
Hi,
DB :11.2.0.1
OS :Aix6
We getting the following error in alertlog.We using asm.
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 38273676
1* select name, header_status, path from v$asm_disk
ITSEL-SQL> /
NAME HEADER_STATU PATH
ITSEL_ARCHGROUP01_0000 MEMBER /dev/ITSEL_ARCH_DISK1
ITSEL_ARCHGROUP01_0001 MEMBER /dev/ITSEL_ARCH_DISK2
ITSEL_ARCHGROUP01_0002 MEMBER /dev/ITSEL_ARCH_DISK3
ITSEL_DATAGROUP01_0000 MEMBER /dev/ITSEL_DATA_DISK1
ITSEL_DATAGROUP01_0001 MEMBER /dev/ITSEL_DATA_DISK10
ITSEL_DATAGROUP01_0002 MEMBER /dev/ITSEL_DATA_DISK11
ITSEL_DATAGROUP01_0003 MEMBER /dev/ITSEL_DATA_DISK12
ITSEL_DATAGROUP01_0004 MEMBER /dev/ITSEL_DATA_DISK13
ITSEL_DATAGROUP01_0005 MEMBER /dev/ITSEL_DATA_DISK2
ITSEL_DATAGROUP01_0006 MEMBER /dev/ITSEL_DATA_DISK3
ITSEL_DATAGROUP01_0007 MEMBER /dev/ITSEL_DATA_DISK4
NAME HEADER_STATU PATH
ITSEL_DATAGROUP01_0008 MEMBER /dev/ITSEL_DATA_DISK5
ITSEL_DATAGROUP01_0009 MEMBER /dev/ITSEL_DATA_DISK6
ITSEL_DATAGROUP01_0010 MEMBER /dev/ITSEL_DATA_DISK7
ITSEL_DATAGROUP01_0011 MEMBER /dev/ITSEL_DATA_DISK8
ITSEL_REDOGROUP01_0000 MEMBER /dev/ITSEL_REDO_DISK1
ITSEL_REDOGROUP01_0001 MEMBER /dev/ITSEL_REDO_DISK2
ITSEL_REDOGROUP01_0002 MEMBER /dev/ITSEL_REDO_DISK3
ITSEL_REDOGROUP01_0003 MEMBER /dev/ITSEL_REDO_DISK4
ITSEL_REDOGROUP01_0004 MEMBER /dev/ITSEL_REDO_DISK5
FORMER /dev/ITSEL_DATA_DISK9
21 rows selected.
Any suggestions
Thanks & Regards,
VNHi,
Thanks for your reply.
We didn't find any other messages with this error.
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 41680928
Fri Jul 13 23:59:52 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 38470370
Fri Jul 13 23:59:53 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 12779594
Fri Jul 13 23:59:53 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 45482250
Fri Jul 13 23:59:53 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 31064664
Fri Jul 13 23:59:53 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 43123026
Fri Jul 13 23:59:53 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 42598544
Fri Jul 13 23:59:53 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 35914194
Fri Jul 13 23:59:53 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 8913722
Fri Jul 13 23:59:55 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 34603716
Fri Jul 13 23:59:55 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 14024824
Fri Jul 13 23:59:55 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 36176216
Fri Jul 13 23:59:55 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 56033500
Fri Jul 13 23:59:55 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 45940938
Fri Jul 13 23:59:55 2012
ERROR: unrecoverable error ORA-15032 raised in ASM I/O path; terminating process 58982830
Sat Jul 14 00:00:04 2012
opiodr aborting process unknown ospid (48169328) as a result of ORA-28Sat Jul 14 00:00:04 2012
opiodr aborting process unknown ospid (25952536) as a result of ORA-28
Sat Jul 14 00:00:04 2012
opiodr aborting process unknown ospid (55967964) as a result of ORA-28
Sat Jul 14 00:00:07 2012
opiodr aborting process unknown ospid (32834224) as a result of ORA-28
Sat Jul 14 00:00:07 2012
opiodr aborting process unknown ospid (23593488) as a result of ORA-28
Sat Jul 14 00:00:07 2012
What is wrong in ASM and DB ?
Thanks & Regards,
VN -
Hi All,
I had created a IR report based on a table and it was working with no issues. But after few days, when I try searching using the IR search bar it shows "ORA-20001: get_dbms_sql_cursor error ORA-00936: missing expression" error message. I don't see any debug messages or errors in the debug window. The Finder drop down is empty too, there are no columns displayed to filter.
When I recreate the IR report(new page) based on the same table, It works fine and there are no issues with the search. But the old IR report search doesnt work. I have not modified the any thing in the old report after initial creation. Report uses Primary key based on a sequence.
What might have caused this issue?
Is there a way to intercept the search query from IR report?
Apex version - 4.2.3.00.08.
Any help on this appreciated.
Thanks,
JaganHi MK, as I had mentioned in my post, I don't see any logs in the debug window, query tab.
Can you please guide me how to check the query logs on search?
Thanks,
Jagan -
Why APEX 4.1 Error handling function does not trap the error of missing table?
Say, I create simple application with single IR report page and I also assign standard simple error handling function.
Function works perfectly, except but this case:
If I just drop a table used by report page and then refresh the page I am getting usual APEX error message:
ORA-20001: get_dbms_sql_cursor error ORA-00942: table or view does not exist
and error handling function is not invoked at all.
Is this a feature or a bug?Hi,
Check the corrections given in the note 990764:
Reason and Prerequisites
Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
ORA-00942: table or view does not exist
Fehler in CL_SQL_RESULT_SET Include NEXT_PACKAGE
RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
Solution
SAP NetWeaver 2004s BI
Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
In urgent cases you can implement the correction instructions.
The correction instructions contain the tightened inspection for characteristics.
Regards,
Anil Kumar Sharma .P -
Hi everyone,
has anyone else had this error which has been driving me round the bend during the last three days?
I have an interactive report which used to work fine.
Now it happens (when the page loads/a filter is en- or disabled) that - from time to time, but unpredictable - I receive
ORA-20001: get_dbms_sql_cursor error ORA-00904: : invalid identifier
The report is based on a table function.
I will try to set up a testcase and post the link here, but so far I haven't managed to force the error to occur.
But maybe someone else has already bumped into this kind of error? I would be grateful for any hints!
Best regards,
Sabine
Application Express 4.1.0.00.32
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionHi Jari,
I changed the type definition (the return type of the table function) and extended the select list in the source of the IR.
I do not use 'select *' but reference every column explicitly. So APEX easked me whether to add the new column.
I also tried deleting in recreating the region, but no luck.
Any more ideas?
Best regards,
Sabine -
Hi,
I am having a wft program, which checks a function activity and depending on the value returned sends difference notifications.
The package body completed successfully from backend and while running the workflow program it sends a notification also. But while opening the notification it gives the following error,
ORA-20006: ORA-01722: invalid number ORA-06512: at "APPS.WF_NOTIFICATION", line 5328 ORA-06512: at line 5
I have 3 procedures in my package body and all the 3 procedures have exceptions defined as follows, if they are using any workflow activities.
==========================================================
EXCEPTION
WHEN OTHERS THEN
WF_CORE.context (
'WFCustCheck',
'MisCustDataFromTableDoc',
document_id,
display_type,
document,
document_type,
SQLERRM
RAISE_APPLICATION_ERROR (-20006, SQLERRM);
==========================================================
But I am not able to figure out what is causing this error. What does this "line 5328 ORA-06512: at line 5" in the error message indicate?. My package body has only 600 lines. And why is the error message not displaying the procedure name? though I have defined the procedure name in the exception.
What is the best way to get the procedure name in the error message? So that it becomes easier for identifying which procedure is causing the erro?
Please let me know.
ThanksHi,
Instead of the RAISE_APPLICATION_ERROR command, just replace that with RAISE;
The error is coming out of the package that is sending the notification (WF_NOTIFICATION), which is invoked when you open the notification. I'm guessing that line 5 is the line in your code though.
Are you using documents to send the notification, or are they purely defined in the .wft file?
Matt
Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
http://www.workflowfaq.com
http://forum.workflowfaq.com
NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com -
We have a SQL Server 2005 64bit box that needs a linked server created to Oracle 11g 64bit box. I have all the Oracle client software installed and can successfully connect to the Oracle database using SQL+ on the SQL Server 2005 64bit box. When I create
the linked server and select the OraOledb.Oracle provider, I get the TNSNames error. The Oracle server does not use tnsnames.ora it uses OLAP.ora to resolve. How do I get Linked server to stop trying to connect via TNSNames and use the OLAP.ora file instead?
I can't find any articles for this specific issues. All Oracle examples tell you to use TNSNAMES. The Oracle server is not under my companies control so I can not force the vendor to use tnsnames instead of OLAP.Hi,
Have you got a resolution?
Thank you. -
ORA-20001: error 29th ORA-24344 When creating a workspace
Hi,
I just installed APEX 4.0 on 10g (10.2.0.4).
When I tried to create a new workspace, at the last step (after clicking "Create Workspace" button), it fails with the following error.
ORA-20001: error 29th ORA-24344: success with compilation error
Error provisioning test.
I could not find any errors in PLSQL debug error, and in DBA_ERRORS table.
Could you help me to fix this problem? I ran utlrp.sql to make sure we don't have invalid objects. And I read the installation log and found no errors. XDB, OWA installed.
I have another APEX 4.0 instance on 11g R2, and it works fine.
Thanks
Jung
Edited by: jwryoo on Jul 15, 2010 8:37 AMthanks.
Yes, that's I already checked and confirmed that the privilege is granted.
DBA_ERRORS did not show any errors owned by APEX% users.
But I did see some errors owned by XDB.
PL/SQL: Item ignored
PLS-00201: identifier 'UTL_FILE' must be declared
PL/SQL: Statement ignored
PLS-00201: identifier 'DBMS_LOB' must be declared
It seems the DB has revoked some public access for security reasons.
So, I am trying to ask DBA to grant the privileges to XDB. -
ORA-06512 and/or ORA-00936 ... simple procedure problem probably
I'm passing in codes like the following to the stored procedure (below):
",IRE,UK,FR,SCOT,WALES" (a string of words seperated by a ',')
Problem is I get the following error:
ORA-00936: missing expression ORA-06512: at "APPNAME.PKG_TOOL", line 132 ORA-06512: at line 1
I googled the two ORA's but am still stumped. I'd appreciate any help at all as I'm still not overly familiar with SQL.
PROCEDURE sp_check_code_Exist(p_CodeList IN varchar, p_cursorSMB IN OUT cursorSMB) IS
thissql varchar(1000);
BEGIN
thissql := thissql || 'select * from codes_data c where ';
thissql := thissql || 'c.code in ('|| p_CodeList ||') ';
open p_cursor FOR thissql;
begin
Execute immediate thissql;
end;
END sp_check_code_Exist;I know this is digressing a bit from the thread heading but I'd like to know if I really will be screwed if I don't optimise.
The machine that this is being hosted on will be a top notch machine with a very fat line and will have probably only thousands of codes.
This is the code as it stands now
PROCEDURE sp_check_GenericCodes(p_GenericsList IN varchar, p_cursorSMB IN OUT cursorSMB) IS
thissql varchar(1000);
BEGIN
thissql := thissql || 'select distinct generic_code from emc_codes_data ed where ';
thissql := thissql || 'ed.generic_code in ('||p_GenericsList||')';
open p_cursorSMB FOR thissql;
END sp_check_GenericCodes;So all I'll be returning is a few thousand words which will then be sorted alphabetically and will be then compared to another string which will be sorted alphabetically, to see if there is any missing code, and if there are then those codes will be spit out to an admin who will realise he made a mistake and where the mistake is.
This is how its all called:
public string checkGenericCodesExist(string codesList)
OracleDataReader rdr = null;
DBConnect dbConnLocal = null;
OracleCommand cmd = null;
string sRetVal = null;
string CurrentFunction = "PPTEngine.clsPart.genericCodeExsists";
try
dbConnLocal = new DBConnect(CurrentFunction, "Pkg_SMBTool.sp_check_GenericCodes", m_Stream);
// Pass in parameters
dbConnLocal.addParam(new OracleParameter("p_cursorSMB", OracleType.Cursor));
dbConnLocal.setParamDirection("p_cursorSMB",ParameterDirection.Output);
dbConnLocal.addParam(new OracleParameter("p_GenericsList", OracleType.VarChar));
dbConnLocal.setParamValue("p_GenericsList", codesList);
// Execute
cmd = dbConnLocal.ExecuteProcedure();
rdr = (OracleDataReader)cmd.Parameters["p_cursorSMB"].Value;
// Loop
if (rdr.HasRows)
while (rdr.Read())
if (!rdr.IsDBNull(rdr.GetOrdinal("Generic_Code"))) m_GenericCode = rdr.GetString(rdr.GetOrdinal("Generic_Code"));
rdr.Close();
//remove the '
string[] PPTCodes = codesList.Replace( "'", null).Split("','".ToCharArray());
catch (Exception e)
Log.WriteToFile(CurrentFunction + " - " + e.Message, System.Diagnostics.TraceLevel.Error);
throw e;
finally
if (dbConnLocal!=null) dbConnLocal.Close();
return sRetVal;
}The above function is still a work in progress, but is almost there. -
I got an error, googled it and couldn't find a good answer. Joe Fuda helped me to fix the problem. Here is the answer for future google results.
Error:
ORA-20001: get_dbms_sql_cursor error ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table
Query that triggered the error:
SELECT
p.rowid
, p.product_id
, p.product_type
, p.product_name
, p.product_description
FROM
product p
, link_release_product rp
WHERE
rp.release_id = 1
AND
p.product_id = rp.product_id
This is casued by the keyword "rowid".
The same error occurs if 'p.rowid' is replaced with 'p."ROWID"'.
You can replicate this error in SQL Command by adding wrapping the query with 'select * from ( [the query] )'
Fix:
Add an alias to 'p.rowid' so the query is now like:
SELECT
p.rowid product_rowid
, p.product_id
, p.product_type
Reason:
Unclear, it might have something to do with how APEX does pagination.ok, found the answer... it has to do with the single row view issue addressed in this thread... ORA-01446 on Interactive query
(sorry if there's a better way to link to other threads in this forum). -
ORA-15032 when mounting a diskgroup in a remote node
Hi all,
Oracle 10g R2 (10.2.0.4)
Windows 2003 SP2 Server
I successfully went through the steps of creating an Oracle RAC of two nodes rac1 and rac2 till I reached to creating ASM step.
To create an ASM, I issused dbca from rac1 and created an ASM instance. The issue appeared when I created the Diskgroup.
After selecting the disk and clicking on OK, I got the following error:
http://www.ahmedbaraka.com/temp/errorsnapshot.png
Following are the generated log files in rac1:
C:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\trace.log http://www.ahmedbaraka.com/temp/trace.log
C:\oracle\product\10.2.0\db_1\log\rac1\racg\ora.rac1.ASM1.asm.log http://www.ahmedbaraka.com/temp/ora.rac1.ASM1.asm.log
Following are the generated log files in rac2:
C:\oracle\product\10.2.0\admin\+ASM\bdump\alert_+asm2.log http://www.ahmedbaraka.com/temp/alertasm2.log
Any hint is appreciated as I'm stuck with this for a couple of days.Hi Philippe Florent,
You were right about the version, so I applied the patch and redid the procedure. Unfortunately, I still face exactly the same error.
I also made sure when I make changes on a disk in rac1 (in Windows level), it is automatically seen by rac2.
Below are links of the new logs and pfiles:
http://www.ahmedbaraka.com/temp/alertasm22.log
http://www.ahmedbaraka.com/temp/trace2.log
http://www.ahmedbaraka.com/temp/rac1pfile.ora
http://www.ahmedbaraka.com/temp/rac2pfile.ora
Output of the commands you asked about:
# RAC1
SQL> select name, state from v$asm_disk ;
NAME STATE
NORMAL
DGDATA1_0000 NORMAL
# RAC2
1* select name, state from v$asm_disk
SQL> /
NAME STATE
NORMAL
NORMALThanks in advance. -
Ora-00604 error and ora 01000 error while report generation.
hi all,
I am trying to generate the multiple reports of same template through a program.
While this job is running, i get the following error at the BIP console and the reports don't get generated.
[101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
ORA-00604: error occurred at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
ORA-01000: maximum open cursors exceeded
Kindly help.
Thanks.Lots of resources with a simple search to see what this is about, for example:
http://www.orafaq.com/wiki/ORA-01000
ORA-01000: maximum open cursors exceeded
Cause: A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
Action: Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
open_cursors parameter
http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
Oracle support note:
OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1) -
Problems with moving files to ora directory UTL_FILE.PUT_RAW - ORA-29285
hi,
i'm using apex 4.1
i have a procedure which moves my file from apex_application_files to ORA directory.
if i choose a text file or small word document which is 1kb, it works. but if i have pdf file (85kb) or word document (16kb) it gives me ORA-29285: file write error
what's my problem?
PROCEDURE put_file_to_server (p_filename IN VARCHAR2,p_cert_type IN VARCHAR2,p_cert_pk IN NUMBER)
AS
l_file UTL_FILE.file_type;
l_blob_len INTEGER;
l_pos INTEGER := 1;
l_amount BINARY_INTEGER := 32767;
l_buffer RAW (32767);
v_new_filename VARCHAR2(100);
v_bfile BFILE ;
BEGIN
-- delete from apex_application_files;
--Neuen Dateinamen generieren
v_new_filename := p_cert_type||'_'||p_cert_pk;
v_bfile := BFILENAME (v_directory, v_new_filename);
--Datei erstellen
l_file := UTL_FILE.fopen(v_directory,v_new_filename,'w');
IF DBMS_LOB.FILEEXISTS (v_bfile) = 1 THEN
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'File exists');
FOR rec IN (select blob_content lblob from apex_application_files where rownum = 1)
LOOP
l_blob_len := DBMS_LOB.getlength(rec.lblob);
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Filesize is '||l_blob_len);
WHILE l_pos < l_blob_len LOOP
DBMS_LOB.read (rec.lblob, l_amount, l_pos, l_buffer);
UTL_FILE.put_raw (l_file, l_buffer, FALSE);
l_pos := l_pos + l_amount;
END LOOP;
COMMIT;
END LOOP;
--Datei schließen
UTL_FILE.fclose(l_file);
else
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Datei doesn't exist');
end if;
EXCEPTION
WHEN OTHERS
THEN
-- Close the file if something goes wrong.
IF UTL_FILE.is_open (l_file) THEN
UTL_FILE.fclose (l_file);
END IF;
delete from apex_application_files;
RAISE;
delete from apex_application_files;
END put_file_to_server;Sorry but din't test this...Can you give it a try and see if this works?
PROCEDURE put_file_to_server(
p_filename IN VARCHAR2,
p_cert_type IN VARCHAR2,
p_cert_pk IN NUMBER)
AS
l_file UTL_FILE.file_type;
l_blob_len INTEGER;
l_pos INTEGER := 1;
l_amount BINARY_INTEGER := 32767;
l_buffer RAW (32767);
v_new_filename VARCHAR2(100);
v_bfile BFILE ;
vblob BLOB;
vstart NUMBER := 1;
my_vr RAW(32000);
bytelen NUMBER := 32000;
LEN NUMBER;
BEGIN
-- delete from apex_application_files;
--Neuen Dateinamen generieren
v_new_filename := p_cert_type||'_'||p_cert_pk;
v_bfile := BFILENAME (v_directory, v_new_filename);
--Datei erstellen
--l_file := UTL_FILE.fopen(v_directory,v_new_filename,'w');
l_file := UTL_FILE.fopen(v_directory,v_new_filename, 'WB', 32760);
IF DBMS_LOB.FILEEXISTS (v_bfile) = 1 THEN
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'File exists');
FOR rec IN
(SELECT blob_content lblob,
LENGTH(blob_content) LEN
FROM apex_application_files
WHERE rownum = 1
LOOP
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Filesize is '|| LEN);
IF LEN < 32760 THEN
utl_file.put_raw(l_file,lblob);
utl_file.fflush(l_file);
ELSE -- write in pieces
vstart := 1;
WHILE vstart < LEN
LOOP
dbms_lob.read(vblob,bytelen,vstart,my_vr);
utl_file.put_raw(l_file,my_vr);
utl_file.fflush(l_file);
-- set the start position for the next cut
vstart := vstart + bytelen;
-- set the end position if less than 32000 bytes
x := x - bytelen;
IF x < 32000 THEN
bytelen := x;
END IF;
END LOOP;
END IF;
END LOOP;
ELSE
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Datei doesnt exist');
END IF;
utl_file.fclose(l_file);
EXCEPTION
WHEN OTHERS THEN
-- Close the file if something goes wrong.
IF UTL_FILE.is_open (l_file) THEN
UTL_FILE.fclose (l_file);
END IF;
DELETE FROM apex_application_files;
RAISE;
DELETE FROM apex_application_files;
END put_file_to_server;Edited by: Vitor Rodrigues on 17/Fev/2012 12:03
Maybe you are looking for
-
iPod touch 4 gives message "Cannot Download" "there is not enough available storage to download...You can manage your storage in settings." when trying to update or install one of the apps, but not other apps. I have more space available than needed
-
Hello We recently upgraded RH in our company from x5 to HTML 6, build 099. In a project I worked on with X5, I had imported Excel spreadsheets saved as html and generated a primary layout without any problem. However, in 6, when I would generate a la
-
Help! Senior citizen needs help in closing out a program?
I am woefully ignorant about some things on my computer. Trying to look at photos from a disc. Ran it through virus program and it is clean. Clicked on first photo which opened yesterday..but today it is not opening. All I am seeing is that litt
-
Transfering Data Between Slides...
This problem arises when we have survey questions that do not really allow for giving direct feedback as with a graded question slide. We have succumbed to the ugly solution of pseudo-duplication of the question slide minus the check boxes/radial but
-
Discoverer4i viewer config error
I am in the process of install 9iAS and experienced this problem during config tools: in the starting discoverer4i viewer, looks like some files are missing, and even the folder util is not there. do thses related to other tools because some others a