Error while setting up Standby database using Grid Control
I am getting this on grid control 10.2 on windows env while creating standby database using EM. I have checked this folder and it does exists.
any ideas?
C:\oracle\ora10.1\network\admin\listener.ora: java.io.IOException: The system cannot find the path specified
There is no problem tnsnames.ora & listener.ora since I am getting the same error for just standby backup also.
this is error on emoms.trc file
2007-07-18 13:19:37,318 [EMUI_13_19_37_/console/database/instance/sitemap] ERROR perf.sitemap setMaintenancePage.1812 - java.sql.SQLException: ORA-00933: SQL command not properly ended
ORA-06512: at "SYSMAN.ECM_UTIL", line 509
ORA-06512: at line 1
java.sql.SQLException: ORA-00933: SQL command not properly ended
ORA-06512: at "SYSMAN.ECM_UTIL", line 509
ORA-06512: at line 1
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:869)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1153)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2932)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3023)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4132)
at oracle.sysman.util.jdbc.PreparedStatementWrapper.execute(PreparedStatementWrapper.java:173)
at oracle.sysman.util.jdbc.CallableStatementWrapper.execute(CallableStatementWrapper.java:135)
at oracle.sysman.eml.ecm.cloneHome.repaccess.CloneHomeSql.getClonableHomes(CloneHomeSql.java:449)
at oracle.sysman.eml.ecm.cloneHome.repaccess.CloneHomeSql.getClonableHomes(CloneHomeSql.java:561)
at oracle.sysman.eml.ecm.cloneHome.repaccess.CloneHomeSql.isHomeClonable(CloneHomeSql.java:363)
at oracle.sysman.db.adm.inst.SitemapController.setMaintenancePage(SitemapController.java:1807)
at oracle.sysman.db.adm.inst.SitemapController.setRequestAttributes(SitemapController.java:1385)
at oracle.sysman.db.adm.BaseController.handleEvent(BaseController.java:1154)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:577)
at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:174)
at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:114)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:781)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
at oracle.sysman.eml.app.Console.doGet(Console.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:88)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
2007-07-18 13:19:42,505 [EMUI_13_19_42_/console/database/dataguard/create] ERROR em.dataguard validate.1118 - CreateBean: ClassNotFoundException: null
2007-07-18 13:19:44,224 [EMUI_13_19_44_/console/database/dataguard/create] ERROR em.dataguard validate.1118 - CreateBean: ClassNotFoundException: null
2007-07-18 13:19:46,052 [EMUI_13_19_44_/console/database/dataguard/create] ERROR em.dataguard mapHelpPage.2002 - StandbyUtil.mapHelpPage: dghelp for database/dataguard/createSchedule not mapped to any help ID.. Defaulting to oemdba_consens_data_guard_page
2007-07-18 13:19:47,130 [EMUI_13_19_47_/console/database/dataguard/create] ERROR em.dataguard validate.1118 - CreateBean: ClassNotFoundException: null
2007-07-18 13:19:53,052 [Thread-85] ERROR jobs.dbclone createTemplate.379 - TemplateManager.createTemplate(): Exception: java.io.IOException: The system cannot find the path specified
2007-07-18 13:19:53,052 [Thread-85] ERROR jobs.dbclone submitJobPreparation.3013 - DBCloneObject.submitJobPreparation(): Exception: java.io.IOException: The system cannot find the path specified
2007-07-18 13:19:53,052 [Thread-85] ERROR jobs.dbclone submitDBCloneJob.3228 - DBCloneObject.submitDBCloneJob(): Exception: The system cannot find the path specified
2007-07-18 13:19:58,006 [EMUI_13_19_58_/console/database/dataguard/create] ERROR em.dataguard onEvent.1038 - CreateConfigController: Exception: oracle.sysman.db.dg.util.VxxStandbyException: The system cannot find the path specified
Similar Messages
-
Error while creating physical standby database using Oracle Grid 10.2.0.5
Hi All,
I am setting up data guard using oracle grid.
Primary database version: - 10.2.0.4
Standby database version: - 10.2.0.4
Primary OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
Standby OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
I am creating physical standby database using EM. But it is getting failed with error message in sqlnet.ora file
Fatal NI connect error 12533, connecting to:
(DESCRIPTION=(ADDRESS_LIST=)(CONNECT_DATA=(SERVICE_NAME=INPRDSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=indb50.oii.com)(USER=oracle))))
VERSION INFORMATION:
TNS for Linux: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.4.0 - Production
Time: 17-AUG-2010 02:40:07
Tracing not turned on.
Tns error struct:
ns main err code: 12533
TNS-12533: TNS:illegal ADDRESS parameters
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0As we can see, address_list is empty.
Can anyone suggest what could be the reason behind this?Dear user13295317,
Here is the error explanation;
Oracle Error :: TNS-12533
TNS:illegal ADDRESS parameters
Cause
An illegal set of protocol adapter parameters was specified.
In some cases, this error is returned when a connection cannot be made to the protocol transport.
Action
Verify that the destination can be reached using the specified protocol.
Check the parameters within the ADDRESS section of TNSNAMES.ORA.
Legal ADDRESS parameter formats may be found in the Oracle operating system specific documentation for your platform.
Protocols that resolve names at the transport layer (such as DECnet object names) are vulnerable to this error if not properly configured or names are misspelled.Hope That Helps.
Ogan -
Unable to connect to Database using Grid Control
Hi,
I am attempting to connect to my Oracle Linux Machine which has 2 databases FROM my 10g Grid control which is on a Windows XP 32 bit.
Although I can login to the actual linux box with the host and database credentials ; I cant use the same to login to the database using Grid control.
I have tried testing the connection using Grid Control >> Preferences >> Preferred Credentials >> Host ; but its just not recognizing the credentials as correct.
When I attempt to startup the database using the host and DB credentials : ERROR MESSAGE : <servername> : <servername> comes up.
My agent on linux box is up. My Listener is running fine.
On my Grid control .. i have the DB, OMS, and Agent running as well.
Any inputs on this issue, I'd appreciate very much.Thanks for your reply.
Under Hosts on the Main Grid Console Home Page >> "server3.sam" Status shows UP. This server houses my 2 databases. But when I click on Databases >> it shows Instance DOWN.
Status
Failed
Details Failed to connect to database instance: ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach).
I have verified that my lsnrctl status is good on the linux box. My target agent is up and running on it as well.
So I try to start the STARTUP button >> I enter the HOST Credentials of the Linux box and the Database credentials which I use "SYS" (in upper case - just in case that mattered) and choose SYSDBA ;
Error Message
server3.sam: server3.sam
I created a new dba account and try to login ... dont seem to work ; I tried using SYSTEM account and even altering my sys and system passwords .. all turn out negative.
And the ANSWER to your question ---> Grid Control >> Preferences >> Preferred Credentials >> Database Instance >> corresponding to my database name ; I enter my sysdba username / password AND the host username / password of my Linux box >> TEST >> which also turns out negative.
This entry is auto filled in since I "checked" the box "Save as Preferred Credential"; initially when I tried to start the DB using the STARTUP button.
By the way, my Win XP doesnt really have a password set under User accounts.
Any suggestions please ? -
UDM on physical standby database in grid control 11.1
I am getting
Test Results
ORA-06550: line 70, column 5: PLS-00201: identifier 'RAISE_APPLICATION_ERROR' must be declared ORA-06550: line 70, column 5: PL/SQL: Statement ignored
While creating UDM on physical standby database in grid control 11.1. Please help me how to resolve this. I am able to create UDM on normal or primary databases.What credential is defined?
Fairly certain only a sysdba connection will work unless the recovery is stopped and switched to read-only. Or when it becomes primary ... -
Getting errors while creating a Standby database
Hi,
I have Oracle 9.0.2 installed on windows xp machine , the sid of the database is oradata. Now i am trying to create a standby database on same machine and the sid of the database is oratest. i have followed the required steps.
a. Firstly i have configured the required parameters in the init.ora parameters of standby database
b. Secondly , i created the standby control file on primary database.
c. while mounting the standby database i am getting the following error.
Database name "ORADATA" its should be "ORATEST"
Could you please help me in resolving this issue? and also if possible. please jot down the procedure for creating the standby database.
Thanks
Vj0011590Hi,
I have Oracle 9.0.2 installed on windows xp machine ,
the sid of the database is oradata. Now i am trying
to create a standby database on same machine and the
sid of the database is oratest. i have followed the
required steps.
a. Firstly i have configured the required parameters
in the init.ora parameters of standby database
b. Secondly , i created the standby control file on
primary database.
c. while mounting the standby database i am getting
the following error.
Database name "ORADATA" its should be "ORATEST"I didn't see you copy the cold backup db from primary to standby.
and the error is coming from init.ora in your standby db. check it again. -
Create physical standby database via grid control Errror
Hi
I wonder if anyone has seen the following problem
I am creating a standby database using EM Grid Control wizard. It all configures fine and starts the job goes through all steps including copying datafiles etc. but when it hits the step CREATE STANDBY DATABASE it fails with no explanation. In the oms log all it says is an error about cant find the sid name
EM Grid COntrol is 10.2.0.5 version
Windows Primary is Windows 2003 server 10.2.0.4 db
Trying to create on windows 2003 server with same oracle version
Thanks
DDid you search the same on Metalink ?
please also cehck
EM: Creation process for a physical standby DB failed with SQL Exception
Regards
Rajesh -
Creating standby database through Grid Control.
Hi,
I want to know if source database which we term as primary database goes down during Db creation process when given option of "Perform a live backup of primary database" during Add standby wizard in Grid Control. Please let me know if people have already tested it in their environments.
I appreciate you all for looking into my forum.
Regards,
GauravNo, one of the options for performing this task is to create from a Live db.
A couple of things to note here:
You must be using spfile
If you are not using the default port of 1521 then you must also have the local_listener parm set
I recommend using the "db_unique_name" option to make it easier to manager in OEM (for the target name)
Hope this helps,
Landon -
Error While Restoring the Oracle Database using Cloud Backup
Hello,
I have been facing a serious error while oracle restoration. I have Backed up Complete Database. For Testing restoration, the DBA removed all the DBF, logs and Control File from there orignal Position.
He restarted the Database in "Startup nomount" mode. No i am not able to connect to target database from my Backup Server remotely.
Whenever i try to restore, it shows following error:-
***RMAN-04005: error from target database:***
***ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
***ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
***"ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
I am using Oracle 11g R2 x64-bit database and on Windows Platform with Windows Server 2008 R2.
Can Anyone help me by connecting, rman to the remote target database when it is in nomount mode.
I am not able to connect the sqlplus remotely.\
Thanks in Advance...
Regards
Pravesh UpadhyayDevika,
You have to stop all your adapters, your repository, close all IStudio client and stop all sessions connected to this schema before running the oaiimport.
If you don't do this the oaiimport will not work properly as the script will not be able to drop the user and will try to re-create existing objects.
Tip : use the following select to list the session using oaihub902 user (and get rid off them)
select username, count(*)
from V$session
where username in ('OAIHUB902')
group by username
order by count(*) desc, username
JL -
OutofMemory Error while sending file to database using Web services
I have a file of 30MB to be written to the MySQL database. I am doing this in Axis web services and it gives me the following error:
(I am using Tomcat as the application server and Apache as the web server, Axis 1.3 and MySQL standard 5.0.21 version. I have set the minimum and maximum heap size and it works well without using the web service (just uploading and downloading from the database using a simple java program). Another thing to notice is that I can send a file of almost 10MB size to the database using web service without any problem. But it doesn't work with the 30 MB .)
java.lang.OutOfMemoryError: Java heap space; nested exception is:
java.lang.OutOfMemoryError: Java heap space
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: java.lang.OutOfMemoryError: Java heap space; nested exception is:
java.lang.OutOfMemoryError: Java heap space
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:dbr221d.dbr.louisville.edu
java.lang.OutOfMemoryError: Java heap space; nested exception is:
java.lang.OutOfMemoryError: Java heap space
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at edu.louisville.bcc_ma.ws.lab.LabServiceSoapBindingStub.storeGZIPFile(LabServiceSoapBindingStub.java:472)
at edu.louisville.bcc_ma.lims.labclient.container.SendGZIPFile.sendFile(SendGZIPFile.java:69)
at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.login(LoginContainer.java:58)
at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.main(LoginContainer.java:44)Sorry for the delayed response here, forget to add it to my watchlist. I didn't catch if you were using Java 1.5 or not. Prior to 1.5 the default maximum heap space was 64MB which with the overhead of the appserver might be your problem.
Take a look at http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and the java -Xmx <size> command line option to change the default (I believe the size argument is in bytes, but don't hold me to that). I think you can pass that as a command line option to the startup script, but you should check the doco to see if it needs to be wrapped in some other arg etc.,
I seem to recall running into this same problem a few years back when I had a servlet doing some intense graphics processing on the fly and setting this option fixed the problem. -
Creating Standby database using Cloud Control 12C
Hi,
I want to setup Standby database for my existing RAC database, Both standby and PRimary databases are on 11.2.0.3 and we are using "Cloud Control 12C".
After specifing and testing the Host creddential and Database credentials and choosing the Backup method when I click next I get following error message
"Username- The Specified user must own the source database oracle server installation."
I am giving the host credential as oracle, we use single os user "Oracle" for all our installation and administration.
This is AIX OS and 11.2.0.3 database installation.
Any help will be appreciated.
Regards
BhushanGuys,
After searching for 2 days on web and raising question on OTN, in the last we resolved the issue. The issue was registering the primary database with correct oracle binaries.
We have 2 set of binaries Oracle Infrastructure and Oracle RDBMS, The database was register in 12C with Oracle Infrastructure binaries. I changed that and every thing is working soomth.
regards
bhushan -
Getting error while backing up SQL database using powershell
I am trying to backup SQL database but strange thing is taking lpace, few databases i can backup with powershell but few i am getting error
Exception calling "SqlBackup" with "1" argument(s): "Backup failed for Server
'Server1'. "
At C:\_Scripts\defaultbackup.ps1:40 char:1
+ $smoBackup.SqlBackup($server)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FailedOperationException
$dbToBackup = "test"
#clear screen
cls
#load assemblies
#note need to load SqlServer.SmoExtended to use SMO backup in SQL Server 2008
#otherwise may get this error
#Cannot find type [Microsoft.SqlServer.Management.Smo.Backup]: make sure
#the assembly containing this type is loaded.
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoExtended") |
Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo")
| Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoEnum") | Out-
Null
#create a new server object
$server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") "(local)"
$backupDirectory = $server.Settings.BackupDirectory
"Default Backup Directory: " + $backupDirectory
$db = $server.Databases[$dbToBackup]
$dbName = $db.Name
$timestamp = Get-Date -format yyyyMMddHHmmss
$smoBackup = New-Object ("Microsoft.SqlServer.Management.Smo.Backup")
#BackupActionType specifies the type of backup.
#Options are Database, Files, Log
#This belongs in Microsoft.SqlServer.SmoExtended assembly
$smoBackup.Action = "Database"
$smoBackup.BackupSetDescription = "Full Backup of " + $dbName
$smoBackup.BackupSetName = $dbName + " Backup"
$smoBackup.Database = $dbName
$smoBackup.MediaDescription = "Disk"
$smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp +
".bak",
"File")
$smoBackup.SqlBackup($server)
#let's confirm, let's list list all backup files
$directory = Get-ChildItem $backupDirectory
$smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp + ".bak", "File")
$smoBackup.SqlBackup($server)
#let's confirm, let's list list all backup files
$directory = Get-ChildItem $backupDirectory
#list only files that end in .bak, assuming this is your convention for all backup files
$backupFilesList = $directory | where {$_.extension -eq ".bak"}
$backupFilesList | Format-Table Name, LastWriteTime
$backupFilesList = $directory | where {$_.extension -eq ".bak"}
$backupFilesList | Format-Table Name, LastWriteTime
I read on internet that by using this in the script this problem can be sorted but i am
not sure where exactly to put this line in above script set the ConnectionContext.StatementTimeout to 0
Hi Srk,
I found the similar issue in this article, which had been sovled by adding the script below:
$server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") $dbInstance
$server.ConnectionContext.StatementTimeout = 0
Refer to:
Exception calling "SqlBackup" with "1" argument(s)
Please feel free to let me know if this method can not work.
Best Regards,
Anna Wang -
Error while inserting record into database using BPEL
I am trying to read from an xml file using a File Adapter and insert the values read into a database (by invoking a database adapter).
I formed the BPEL Process in the following manner:
1.Receive activity to receive the values read from the file
2.Assign activiuty to assign the values read to the Database input variable
3.Invoke activity to invoke the Database adapter.
The process deploys fine although with a warning : Trying to assign incompatible types.
But when the process is executed, it is faulting at the invoke stage.
The error i am getting is :
<messages><input><InvokeDBInput><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="EmployeesCollection"><EmployeesCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/SaveToDB">
<ns0:Employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/filetoDB D:\Smita\Software\jdevstudio10133\jdev\mywork\FileToDatabase\filetoDB\emp.xsd" xmlns="http://xmlns.oracle.com/filetoDB" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/SaveToDB">
<Name>John Smith</Name>
<Email>[email protected]</Email>
<Department>Finance</Department>
<Designation>Accountant</Designation>
<Grade>5</Grade>
</ns0:Employees>
</EmployeesCollection>
</part></InvokeDBInput></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
</part><part name="summary"><summary>file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_FileToDBTest1_3.5_1558cd90a5c3c9708cd747f1b3638054.tmp/SaveToDB.wsdl [ SaveToDB_ptt::insert(EmployeesCollection) ] - WSIF JCA Execute of operation 'insert' failed due to: Mapping Not Found Exception.
The mapping [Name] for descriptor [class bpel___localhost_default_FileToDBTest1_3_5__MD5_02e1d439ab7f9c7430b64c2a306ee77c_.SaveToDB.Employees] could not be found. The input xml record had an element [Employees/Name].
; nested exception is:
ORABPEL-11627
Mapping Not Found Exception.
The mapping [Name] for descriptor [class bpel___localhost_default_FileToDBTest1_3_5__MD5_02e1d439ab7f9c7430b64c2a306ee77c_.SaveToDB.Employees] could not be found. The input xml record had an element [Employees/Name].
Make sure that the input xml is valid relative to the xsd and that the mapping exists in the Mappings.xml. If an old version of the descriptor without this mapping has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this attribute/mapping.
</summary>
</part><part name="detail"><detail>null</detail>
</part></bindingFault></fault></messages>
The xml and xsd files i have used are these:
XML File (Employee.xml ) :
<?xml version="1.0" encoding="UTF-8"?>
<person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/filetoDB D:\Smita\Software\jdevstudio1013\jdev\mywork\FileToDatabase\filetoDB\emp.xsd" xmlns="http://xmlns.oracle.com/filetoDB">
<Name>John Smith</Name>
<Email>[email protected]</Email>
<Department>Finance</Department>
<Designation>Accountant</Designation>
<Grade>5</Grade>
</person>
Schema file : (emp.xsd) :
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xmlns.oracle.com/filetoDB"
xmlns="http://xmlns.oracle.com/filetoDB"
elementFormDefault="qualified">
<xs:element name="person">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element name="Email" type="xs:string"/>
<xs:element name="Department" type="xs:string"/>
<xs:element name="Designation" type="xs:string"/>
<xs:element name="Grade" type="xs:integer"/>
</xs:sequence>
</xs:complexType>
</xs:element></xs:schema>
can someone help me out?I figured where i was going wrong...added a transform activity after the assign activity to map the file input fieds to the database columns. Now it works fine.
-
Error while saving file to database using messageFileUpload
Hi,
In my OA Page I have messageFileUpload to save the file to a database. I have a custom stored procedure that I call in the AM that takes the file as BLOB and insert it into the table. My problem is for smaller files it works fine but as soon as I try to save a larger file i.e. over 0.5 MB I am getting the following errors. Sometime I get size error sometimes I get unreasonable conversion requested error. How can I solve this so it takes any size of file and save it.
Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Data size bigger than max size for this type: 2251264;
Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested ; Here is what I have in my Controller code snippet
BlobDomain uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
Serializable[] parametersFile = { fileName, contentType, fileSize, uploadedByteStream };
Class[] paramTypesFile = { String.class, String.class, Long.class, BlobDomain.class };
am.invokeMethod("saveFile", parametersFile, paramTypesFile);Here is the AM method that also invokes the Stored Procedure and pass the file as BLOB to save
conn = (OracleConnection)dbTransaction.getJdbcConnection();
cStmt = (OracleCallableStatement)conn.prepareCall(
"{CALL FILE_PKG.saveFile(:1, :2, :3, :4)}");
cStmt.setString(1, fileName);
cStmt.setString(2, fileContentType);
cStmt.setNUMBER(3, new NUMBER(fileSize.intValue()));
cStmt.setBinaryStream(4,uploadedFile.getBinaryStream(),fileSize.intValue());Any help is appreciated.
ThanksI was able to resolve it and used the below code just in case if anyone else trying to save the BLOB
byte[] barray = uploadedFile.getBytes(0,fileSize.intValue());
oracle.sql.BLOB data = oracle.sql.BLOB.createTemporary(conn, true, BLOB.DURATION_CALL);
data.putBytes(1,barray);
cStmt.setBlob(4,tempBlob); -
Error while loading the Repository database using OAIIMPORT
We are building a test oai environment I am trying to load the repository with the export dump from our production oai using the OAIIMPORT script.
I get the following error message:
Deleting all tables, indexes, and logs ...
Executing: sqlplus system/[email protected] @sql/deinstall_schema
SQL*Plus: Release 9.0.1.4.0 - Production on Wed Aug 18 15:04:50 2004
(c) Copyright 2001 Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
With the Partitioning option
JServer Release 9.0.1.4.0 - Production
DROP USER oaihub902 CASCADE
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected
Disconnected from Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
With the Partitioning option
JServer Release 9.0.1.4.0 - Production
Recreating user ...
Executing: sqlplus system/[email protected] @sql/hub1 oaihub902
SQL*Plus: Release 9.0.1.4.0 - Production on Wed Aug 18 15:04:50 2004
(c) Copyright 2001 Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
With the Partitioning option
JServer Release 9.0.1.4.0 - Production
DOC>** hub1.sql
DOC>** Modified 11/14/2001 Arvind : Commented Out excessive priviledge from oaihub user
DOC>** Modified 01/03/2002 Arvind : Added Parameter for oaihub user password
DOC>** CREATE user oaihub902 and assign table space.
DOC>*/
old 1: CREATE USER oaihub902 IDENTIFIED BY &1 DEFAULT TABLESPACE USERS PROFILE DEFAULT ACCOUNT UNLOCK
new 1: CREATE USER oaihub902 IDENTIFIED BY oaihub902 DEFAULT TABLESPACE USERS PROFILE DEFAULT ACCOUNT UNLOCK
CREATE USER oaihub902 IDENTIFIED BY oaihub902 DEFAULT TABLESPACE USERS PROFILE DEFAULT ACCOUNT UNLOCK
ERROR at line 1:
ORA-01920: user name 'OAIHUB902' conflicts with another user or role name
User altered.
User altered.
Grant succeeded.
Grant succeeded.
DOC>** Grant privileges TO user oaihub902.
DOC>*/
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Disconnected from Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
With the Partitioning option
JServer Release 9.0.1.4.0 - Production
Importing metadata ...
Executing: imp system/[email protected] fromuser=oai touser=oaihub902 commit=y file=uranus_aug04_exp.dmp
Executing: sqlplus oaihub902/[email protected] @sql/post_import
SQL*Plus: Release 9.0.1.4.0 - Production on Wed Aug 18 15:04:52 2004
(c) Copyright 2001 Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
With the Partitioning option
JServer Release 9.0.1.4.0 - Production
DOC> ** Create Tables
DOC> */
DOC> ** Workflow Tables and Sequences
DOC> */
CREATE TABLE lookupid (id NUMBER(10) NOT NULL
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE TABLE lookup (tableid NUMBER(10) NOT NULL
ERROR at line 1:
ORA-00955: name is already used by an existing object
DOC> ** Component Info Tables and Sequences
DOC> */
CREATE TABLE ComponentInfo (name VARCHAR2(256) NOT NULL,
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE TABLE ComponentInfoValue (seqnum NUMBER
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE TABLE AppIDTable (appid NUMBER
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE TABLE RepoIDTable (repoid NUMBER
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE TABLE MessageInfoIDTable (messageinfoid NUMBER
ERROR at line 1:
ORA-00955: name is already used by an existing object
DOC> ** Correlation
DOC> */
CREATE TABLE msg_correlation ( messageinfoid NUMBER,
ERROR at line 1:
ORA-00955: name is already used by an existing object
DOC> ** Tracking and Status Tables
DOC> */
CREATE TABLE MessageStatusTable ( SenderApp NUMBER,
ERROR at line 1:
ORA-00955: name is already used by an existing object
DOC> ** Error Table and resubmission AQ
DOC> */
CREATE TABLE oai_agent_error ( errorID NUMBER
ERROR at line 1:
ORA-00955: name is already used by an existing object
DOC> ** Create Views
DOC> */
CREATE VIEW lcoview as
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE VIEW eventview as
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE VIEW eventlcoview as
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE VIEW emdview as
ERROR at line 1:
ORA-00955: name is already used by an existing object
CREATE VIEW dsoview as
ERROR at line 1:
ORA-00955: name is already used by an existing object
DOC> ** Create Queues
DOC> */
DOC> ** Hub Queue
DOC> */
Procedure created.
PL/SQL procedure successfully completed.
DOC> ** Error Queue
DOC> */
CREATE type oai_agent_error_type as object ( errorID NUMBER,
ERROR at line 1:
ORA-00955: name is already used by an existing object
DECLARE
ERROR at line 1:
ORA-24001: cannot create QUEUE_TABLE, OAIHUB902.OAI_AGENT_ERROR_OBJQTAB already
exists
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2284
ORA-06512: at "SYS.DBMS_AQADM", line 56
ORA-06512: at line 3
PL/SQL procedure successfully completed.
DOC> ** Create Sequences
DOC> */
SELECT * FROM SEQUENCE_VALUES;
ERROR at line 3:
ORA-06550: line 3, column 18:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 3, column 4:
PL/SQL: SQL Statement ignored
ORA-06550: line 6, column 44:
PLS-00364: loop index variable 'SEQ_REC' use is invalid
ORA-06550: line 6, column 4:
PL/SQL: Statement ignored
DROP TABLE SEQUENCE_VALUES
ERROR at line 1:
ORA-00942: table or view does not exist
Disconnected from Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
With the Partitioning option
JServer Release 9.0.1.4.0 - Production
Any idea why these errors and how to fix this ?
Thanks in advance
Devika.Devika,
You have to stop all your adapters, your repository, close all IStudio client and stop all sessions connected to this schema before running the oaiimport.
If you don't do this the oaiimport will not work properly as the script will not be able to drop the user and will try to re-create existing objects.
Tip : use the following select to list the session using oaihub902 user (and get rid off them)
select username, count(*)
from V$session
where username in ('OAIHUB902')
group by username
order by count(*) desc, username
JL -
I got the above error while i restore the standby database using RMAN backu
Dear All,
RMAN> crosscheck archivelog all;
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=14 devtype=DISK
specification does not match any archive log in the recovery catalogi got the above error while i restore the standby database using RMAN backup from production.
Help need.i take the backup without catalog database.
regards,
DBrman> list backup;
it shows lengthier but i showed only the corresponding
BS Key Type LV Size Device Type Elapsed Time Completion Time
3479 Full 17G DISK 01:29:42 09-FEB-13
BP Key: 3479 Status: AVAILABLE Tag: 09FEB13_FULL_ESMSRV1_DB
Piece Name: /oradatabkp/rman/esmsrv1_full_db_09feb13
SPFILE Included: Modification time: 08-FEB-13
List of Datafiles in backup set 3479
File LV Type Ckp SCN Ckp Time Name
1 Full 1759250260 09-FEB-13 /esmsrv1/dbs/system01.dbf
2 Full 1759250260 09-FEB-13 /esmsrv1/dbs/undotbs01.dbf
3 Full 1759250260 09-FEB-13 /esmsrv1/dbs/cwmlite01.dbf
4 Full 1759250260 09-FEB-13 /esmsrv1/dbs/drsys01.dbf
5 Full 1759250260 09-FEB-13 /esmsrv1/dbs/example01.dbf
6 Full 1759250260 09-FEB-13 /esmsrv1/dbs/indx01.dbf
7 Full 1759250260 09-FEB-13 /esmsrv1/dbs/odm01.dbf
8 Full 1759250260 09-FEB-13 /esmsrv1/dbs/tools01.dbf
9 Full 1759250260 09-FEB-13 /esmsrv1/dbs/users01.dbf
10 Full 1759250260 09-FEB-13 /esmsrv1/dbs/xdb01.dbf
11 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_default_seg_001.dbf
12 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_property_ind_seg_001.dbf
13 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_property_seg_001.dbf
14 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_upload_ind_seg_001.dbf
15 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_upload_seg_001.dbf
16 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_rate_ind_seg_001.dbf
17 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_rate_seg_001.dbf
18 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_ind_seg_001.dbf
19 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_001.dbf
20 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_001.dbf
21 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_002.dbf
22 Full 1759250260 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_002.dbf
23 Full 1759250260 09-FEB-13 /esmsrv1/dbs/perfstat_001.dbf
39 Full 1759250260 09-FEB-13 /esmsrv1/dbs/oem_repository.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
3480 Full 17G DISK 01:21:30 09-FEB-13
BP Key: 3480 Status: EXPIRED Tag: TAG20130209T200021
Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_full_Feb09
SPFILE Included: Modification time: 08-FEB-13
List of Datafiles in backup set 3480
File LV Type Ckp SCN Ckp Time Name
1 Full 1759422265 09-FEB-13 /esmsrv1/dbs/system01.dbf
2 Full 1759422265 09-FEB-13 /esmsrv1/dbs/undotbs01.dbf
3 Full 1759422265 09-FEB-13 /esmsrv1/dbs/cwmlite01.dbf
4 Full 1759422265 09-FEB-13 /esmsrv1/dbs/drsys01.dbf
5 Full 1759422265 09-FEB-13 /esmsrv1/dbs/example01.dbf
6 Full 1759422265 09-FEB-13 /esmsrv1/dbs/indx01.dbf
7 Full 1759422265 09-FEB-13 /esmsrv1/dbs/odm01.dbf
8 Full 1759422265 09-FEB-13 /esmsrv1/dbs/tools01.dbf
9 Full 1759422265 09-FEB-13 /esmsrv1/dbs/users01.dbf
10 Full 1759422265 09-FEB-13 /esmsrv1/dbs/xdb01.dbf
11 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_default_seg_001.dbf
12 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_property_ind_seg_001.dbf
13 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_property_seg_001.dbf
14 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_upload_ind_seg_001.dbf
15 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_upload_seg_001.dbf
16 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_rate_ind_seg_001.dbf
17 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_rate_seg_001.dbf
18 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_ind_seg_001.dbf
19 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_001.dbf
20 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_001.dbf
21 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_overflow_seg_002.dbf
22 Full 1759422265 09-FEB-13 /esmsrv1/dbs/dpipe_summary_seg_002.dbf
23 Full 1759422265 09-FEB-13 /esmsrv1/dbs/perfstat_001.dbf
39 Full 1759422265 09-FEB-13 /esmsrv1/dbs/oem_repository.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
3481 Full 4M DISK 00:00:03 09-FEB-13
BP Key: 3481 Status: AVAILABLE Tag: TAG20130209T212205
Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_controlfile_copy_Feb09
Controlfile Included: Ckp SCN: 1759462488 Ckp time: 09-FEB-13
BS Key Type LV Size Device Type Elapsed Time Completion Time
3482 Full 0 DISK 00:00:01 09-FEB-13
BP Key: 3482 Status: AVAILABLE Tag: TAG20130209T212212
Piece Name: /oradatabkp/rman/esmsrv1/esmsrv1_spfile_copy_Feb09
SPFILE Included: Modification time: 08-FEB-13
ls -l /oradatabkp
root@drsrv1#ls -l /oradatabkp
total 1108672
drwxr-xr-x 2 ovsd dba 96 Sep 27 2009 alert_bkp
-rw-r--r-- 1 oracle dba 195 Mar 15 2007 create.sql
drwxr-xr-x 2 oracle dba 8192 Aug 7 2009 ctrl_bkp
-rw-r--r-- 1 root sys 565114880 Apr 24 2007 drsrv1.tar
drwxrwxrwx 2 root sys 96 Jun 17 2011 drsrv2-ignitebkp
drwxr-xr-x 4 root sys 96 Apr 24 2007 esmsrv1
-rw-r----- 1 root sys 1613824 Feb 22 2007 esmsrv1stby.ctl
-rw-r--r-- 1 esmsrv1 dba 5120 Dec 31 2009 esmtables.dmp
-rw-r--r-- 1 esmsrv1 dba 538 Dec 31 2009 esmtables.log
drwxrwxrwx 4 root sys 8192 Mar 10 2009 export
drwxr-xr-x 8 root sys 8192 Apr 24 2007 finalbackup
-rw-r--r-- 1 oracle dba 3820 Sep 5 2008 invalid.sql
-rw-r--r-- 1 esmsrv1 dba 303104 Dec 31 2009 kirdevports.dmp
-rw-r--r-- 1 esmsrv1 dba 591 Dec 31 2009 kirdevports.log
drwxr-xr-x 2 root root 96 Feb 12 2007 lost+found
-rw-r--r-- 1 oracle dba 24954 Aug 9 2009 ovcontrol-090909.ctl
drwxr-xr-x 22 root sys 8192 Apr 24 2007 ovpi
drwxr-xr-x 2 oracle dba 8192 Aug 7 2009 pfile_bkp
drwxrw-rw- 4 oracle dba 8192 Feb 10 15:25 rman
drwxr-xr-x 28 root sys 8192 Feb 1 17:15 schedbkp
drwxr-xr-x 2 oracle dba 8192 Jul 11 2011 sdnnm
-rw-r--r-- 1 esmsrv1 dba 2196 Dec 31 2009 srirdevports.log
drwxr-xr-x 2 oracle dba 96 Mar 13 2009 statsreport
-rw-r--r-- 1 oracle dba 966 Mar 15 2007 tbs.sql
drwxr-xr-x 5 oracle dba 96 Mar 16 2007 testov
drwxr-xr-x 2 root sys 442368 Mar 11 2009 trendadm_files
root@drsrv1#ls -l /oradatabkp/rman
total 37244448
drwxr-xr-x 2 oracle dba 8192 Feb 10 15:25 esmsrv1
-rw-r----- 1 oracle dba 19068198912 Feb 9 14:21 esmsrv1_full_db_09feb13
drwxrw-rw- 2 oracle dba 8192 Feb 9 21:36 openview
-rw-r--r-- 1 oracle dba 920442 Feb 9 21:37 rmanbkp-all.log
Maybe you are looking for
-
Problem with luactivate procedure in Solaris 10 Update 5
We are having some issues with Live Upgrade procedures with Solaris 10 Update 5 on SUN Enterprise T5240 servers. We have successfully performed those procedures earlier on SUN Fire v240 using Solaris 10 Update 3. Here is the problem statement: 1. Cre
-
How to modify the memory quota of jvm???
hello how can i modify the memory size of jvm within the weblogic platform?
-
Ultra 60 with a Hercules VGA Card wont show me anything
Hi there, i just have a Ultra 60 on my desk, and unfortunately I am not getting anything on my screen. Is there anything special I should look after to get the U60 with the Hercules PCI Card to work? The Model of the hercules VGA Card is: Terminator
-
Apple iPhone Case Program (US to Singapore)
I have ordered a case from Apple via the Case Program for my iPhone 4. My iTunes account is linked to my old US address. However, I have recently moved back to Singapore and would like to request for the case to be sent to Singapore instead. Is there
-
Syndicatng from both the main tables on change in lookup main table
Hi SDNers, I have 2 main tables, say Main table, Lookup Main Table. The requirement is, on change/addition of values in Lookup Main table, I want the record to be syndicated consisting of the fields from the lookup main table and the corrseponding fi