Getting the writable operation error while using oracle cdc - oracle

I am getting the following error while connecting through oracle cdc client and my origin database is read only database but the error is database required for writable operation. please help
Caused by: java.sql.SQLException: ORA-01300: writable database required for specified LogMiner options
ORA-06512: at "SYS.DBMS_LOGMNR", line 58
ORA-06512: at line 1

This is a limitation of LogMiner itself - the LogMiner dictionary requires write access to the database for all modes except Extracting the LogMiner Dictionary to a Flat File, which does not guarantee transactional consistency. Oracle recommends using the online catalog or extracting the dictionary from redo log files, which are the options that Data Collector offers.
See the Oracle LogMiner documentation.

Related

H2 database file corrupted and cannot recover

We use h2 database as our Confluence data source. Yesterday there was a heap overflow error while performing the Confluence backup job. After that we found some data was corrupted.
When we execute the select statement on the damaged data, the error is as follows:
IO Exception: "java.io.IOException: org.h2.jdbc.JdbcSQLNonTransientException: IOException: ""Missing lob entry: 4172202"" [90028-200]";"lob: null table: -3 id: 4172202"[90031-200] 90031/90031
We have used the h2 recovery tool but the restored database still has the above error.
We checked the sql script generated by the recovery tool and found that the corrupted data was written in the comments like:
-- dump: fragmentation of damaged data...
Is there any way we can do to recover the h2 database?

Experiencing issues using DBMS_CLOUD.GET_OBJECT in oracle cloud infrastructure Autonomous Database serverless

I am trying to create a DB Link between 2 Autonomous databases (Serverless) in OCI
List of steps i followed
I created the necessary credentials for the user using dbms_cloud.create_credential
Now, i try to upload the Wallet file (which i have stored in Object storage) using "dbms_cloud.get_object". It produces the following error
ORA-20000: ORA-29283: invalid file operation: nonexistent file or path [29434]
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 983
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 2622
ORA-06512: at line 2
If i use the wrong credential or if i change the uri, the error that the system produces are different. I believe oracle is able to get to the object, yet it produces this error.
Any ideas?
DBMS_CLOUD.GET_OBJECT supports ability to read data from an object store file and return the contents as a BLOB, or save the contents to a file in the given directory object in your Autonomous Database.
https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/dbms-cloud-subprograms.html#GUID-3DB888C9-18C7-4A26-8DA8-EDFB260E2B14
It seems that you are trying to download a Wallet file to directory object for creating a database link. Autonomous Database automatically provisions a database file system to store files. Although the exact SQL syntax is not posted, but the error indicates that the syntax is correct. The error appears like the database file system is not accessible, and it is an internal error for the service.
You could workaround the issue by restarting the Autonomous Database. As this is an old question, the issue could be automatically addressed by now with automatic maintenance of Autonomous Database.
Out of curiosity, what region are you experiencing this in? Free tier or paid?
Ultimately, there is nothing wrong with your syntax used or a wrong usage. Unfortunately the issue you're experiencing is likely an internal error/bug, and can be fixed by OCI ops. I highly recommend submitting a service request.
If you have not submitted one in the past, you can read up on how to here - https://docs.cloud.oracle.com/en-us/iaas/Content/GSG/Tasks/contactingsupport.htm#3Openasupportservicerequest

How to refresh Materialized View using DB link in Oracle

I have 3 schemas in Oracle. There's a Materialized View in the 3rd schema which I need to refresh from the 1st schema.
Below is the elaboration of the requirement:
uv1 (1st schema) --> db link to nwdb2 (2nd schema) --> nwdb3 (3rd schema) --> emp_de_mv (MV)
I need to refresh the emp_de_mv from uv1.
I'm already executing a SELECTstatement on MV from uv1 as follows, which is working successfully:
SELECT * FROM nwdb3.emp_de_mv#nwdb2;
I tried refreshing the MV from uv1 as follows as suggested here.
EXEC DBMS_MVIEW.refresh('nwdb3.emp_de_mv#nwdb2', 'C');
But it's giving me following error:
Error starting at line : 25 in command -
EXEC DBMS_MVIEW.refresh('nwdb3.emp_de_mv#nwdb2', 'C')
Error report -
ORA-20000: ORA-00979: illegal reference to remote database
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2809
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 3025
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2994
ORA-06512: at line 1
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information.
Can anyone help me with above requirement?
Please note, I won't be able to create new DB link in uv1 due to security reasons.
ORA-20000: ORA-00979: illegal reference to remote database
You get this error message because, as the documentation for refresh() states:
"These materialized views can be located in different schemas and have different master tables or master materialized views. However, all of the listed materialized views must be in your local database."
The solution is to execute the refresh on the remote database, by invoking DBMS_MVIEW across the database link:
EXEC DBMS_MVIEW.refresh#nwdb2('nwdb3.emp_de_mv', 'C');
how am I able to access nwdb3 from nwdb2 directly, without DB link & why can't I access nwdb2 directly from uv1, without DB link?
It's your environment so I don't - can't - know the architecture. You describe nwdb2 as a schema but also describe it as a database link. I'm guessing you have a database link called nwdb2 which connects to a schema also called nwdb2 that has privileges on another schema nwdb3 in the remote database server. On the remote server nwdb2 can reference objects in nwdb3 schema without a database link because those schemas are local to each other. But nwdb1 must use a database link because it is not local to either schema.

Informatica Model Repository Service has no content

I am trying to install Informatica IDQ on Windows 7 64-bit. I created a bigfiles, but I am still getting no content error. I have Oracle, and I used the below query for creating a big file.
create BIGFILE TABLESPACE CMX_DATA
NOLOGGING
DATAFILE 'C:\oraclexe\app\oracle\oradata\XE\CMX_DATA1.dbf' SIZE 3000M REUSE
EXTENT MANAGEMENT LOCAL;
but I am still getting an ora_01658 unable to create INITIAL extent for segment error.
Could not execute action...
The requested operation could not be performed due to the following error : [PERSISTENCEAPI_0307]
[DBPERSISTER_2015] Failed to upgrade the Model repository. This was caused by [PERSISTENCEAPI_0307]
[DBPERSISTER_2015] Failed to upgrade the Model repository. This was caused by [PERSISTENCEAPI_0307]
[DBPERSISTER_0017] Failed to create table '"IDQMRS".PO_ISPLONG.'
Verify that a table with the same name does not exist and that the database user has sufficient privileges.
This was caused by [informatica][Oracle JDBC Driver][Oracle]
ORA-01658: unable to create INITIAL extent for segment in tablespace SYSTEM
The error message tells you the name of the tablespace:
ORA-01658: unable to create INITIAL extent for segment in tablespace SYSTEM
The installation is trying to create the tablespace in the SYSTEM tablespace. So it really doesn't matter how space you've allocated to CMX_DATA, your installer ain't using it.
This is wrong: only Oracle's internal schemas should be writing to the SYSTEM tablespace. There must be something awry in the configuration of the Informatica installer or the definition of the IDQMRS user. You need to go back over the steps to find the place where you need to specify the destination tablespace and correct it.

RedGate loading oracle tables metadata fails

I’m using Redgate Data Compare for Oracle 5. I’ve (successfully) created Source and Target connections (both Oracle 11g), defined schema names on both side, then switched to "Tables & Views" tab. There was Initializing process popped-up, like connecting to db, populating metadata from oracle tables etc. and get list of tables from both connections. Later, I switched back to “main” screen "Data Sources" and changed one of the connections to another database (Oracle 12c). This time "Tables and Views" initialization failed with bunch of ORA errors.
ORA-19202: Error occurred in XML processing ORA-29913: error in
executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge
error KUP-04040: file PSImetalsParameters.csv in TEST not
found ORA-06512: at "SYS.DBMS_XMLGEN", line 288 ORA-06512:
at "SYS.DBMS_XMLGEN", line 237 ORA-06512: at "SYS.DBMS_XMLGEN",
line 280 ORA-06512: at line 1
(I have doubt that it may be some privileges issue for that user/schema. But not sure which Oracle tables or schemas RedGate needs to access.)
Any help on it?

Resources