I can't unplug PDB in oracle 19c - oracle19c

I am trying to unplug by PDB but it is showing the error that I have shown in the image. When I searched in google, this error occurs when we try to plug an unplugged PDB. But what I am trying to do here is unplug this testDB pdb.
What Might Be it's solution?
Error That I am Facing:
SQL> alter pluggable database TESTDB unplug into '/u01/app/orabackup/test.xml';
alter pluggable database TESTDB unplug into '/u01/app/orabackup/test.xml'
ERROR at line 1:
ORA-65026: XML metadata file error : LPX-00202: could not open
"/u01/app/orabackup/test.xml" (error 0)

Related

How I do properly connect to an SQL server using Windows authentication?

I'm writing a program in Qt that connects to a local database and writes to it using QSqlDatabase, but I've been unable to get a working connection between my program and the server.
qdb = QSqlDatabase::addDatabase("QODBC");
qdb.setConnectOptions();
QString serverName = "KIRKWOOD\TESTCLOUD";
QString ipName = "tcp:10.150.94.197,1433";
QString dbName = "Puma";
QString connectionString = QString("DRIVER={ODBC Driver 17 for SQL Server};Server=%1;Database=%2;Trusted_Connection=Yes;").arg(ipName).arg(dbName);
qdb.setDatabaseName(connectionString);
bool connectionSuccessful = qdb.open();
if (connectionSuccessful) {
writeLogWithNewLine("Connected to database.");
}
else {
writeLog("Failed to connect to database.");
writeLogWithNewLine(qdb.lastError().text());
}
When I run this code I get the following error in my log:
"Failed to connect to database.
[Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: No connection could be made because the target machine actively refused it. [Microsoft][ODBC Driver 17 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired QODBC3: Unable to connect"
When I replace ipName with serverName I get this error:
"Failed to connect to database.
[Microsoft][ODBC Driver 17 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. [Microsoft][ODBC Driver 17 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired QODBC3: Unable to connect"
When I change the driver to "SQL Server" I get this error:
"Failed to connect to database.
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). QODBC3: Unable to connect"
I've done a lot of research and made a lot of changes to my code, from changing the Driver type to changing the formatting of "Trusted_Connection=Yes" to "Integrated Security=True" but I've had no luck getting anything much different from these errors.
This is frustrating because in this same program I was able to connect to a dummy database using SQL authentication perfectly fine, and on top of that, using this same machine I'm able to connect to the database through Visual Studio's Server Explorer. I've even directly copy pasted the connection string from visual studio but still got nothing. Is there something else I need to do here?
I would greatly appreciate feedback.

ODBC connections setup to import source ininformaitca

I am trying to import oracle table into sources (designer informatica) and when i try to import its giving me error [Microsoft][ODBC driver for oracle][oracle] ORA-121154:TNS: couldn't resolve the connect identifier specified
Am unable to figure out hoe to install odbc drivers if they are missing.
Please help
k
Do you have oracle client installed in your machine? If so oracle wire protocol will be available. Try connect using that
Make sure you have tns entry available under $ORACLE_HOME/client_1/network/admin

ColdFusion Sybase data source configuration error

I am trying to configure a Sybase datas source in ColdFusion Administrator. I am getting the following error message when verifying the connection:
Connection verification failed for data source: IntellicredClient
java.sql.SQLNonTransientConnectionException: [Macromedia][Sybase JDBC Driver]No more data available to read.
The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][Sybase JDBC Driver]No more data available to read.
The only probably issue I can think of is the driver I choose. When I'm connecting to the database manually, I use Adaptive Server Anywhere 9.0 or SQL Anywhere 11. Since there's no such a choice in the Administrator, I choose Sybase. Could this be the problem?
I have ColdFusion 11.
Could be a bug in the JDBC driver. Try replacing current JDBC drivers with the older and stable version. View the link below for instructions.
https://bugbase.adobe.com/index.cfm?event=bug&id=4165262

Connect Qt to a Database

I've been trying really hard for the past few hours to connect my Qt software to a MySQL database that I've hosted using a website that hosts small MySQL databases for free. I can connect to it using phpMyAdmin, but I'm really having trouble getting my software to connect to it.
This is the error message:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified QODBC3: Unable to connect".
Can somebody explain to me what this means, and how to fix it?
You need to headers, libraries & client dll from MySQL
Compile Qt/MySQL driver
Provide path to mysql client library in PATH environment

ColdFusion DSN with DB2 via ODBC

I'm attempting to connect a ColdFusion application to a DB2 ODBC DSN.
Here's my error message:
Connection verification failed for data source: <DSN NAME>
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket][IBM][CLI Driver] SQL30082N Attempt to establish connection failed with security reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001
The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket][IBM][CLI Driver] SQL30082N Attempt to establish connection failed with security reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001
I've installed DB2 client tools on the server ColdFusion runs on. I've verified the credentials are correct.
I'm not a DB2 guy, but have you seen the Coldfusion DB2 Universal Driver doc located here?
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=datasources_ADV_MJS_07.html
Based on your comments, you're using ODBC Socket instead. So while this isn't 1 to 1 what you're asking, it might have something useful: Configure Solaris to DB2 ODBC
http://kb2.adobe.com/cps/171/tn_17188.html
The other thing to keep in mind is that DB2 is only supported in CF Enterprise and Developer Editions. http://www.adobe.com/products/coldfusion/systemreqs/
http://kb2.adobe.com/cps/801/80121c8.html
This CFMX doc ended up being what we went with to get it working.
Thanks to SO for pointing us in the right direction.