OBIEE Answers not showing results - oracle

I recently installed OBIEE 11.1.1.6.0. I imported the repository I had from 11.1.1.5 which was working fine till now.
In the administration tool, I can query my data and update the rows, I can connect with the same credentials as the connection pool without problems in SQLPLUS.
Users have the RESOURCE and CONNECT privileges.
My weblogic user as all the privileges and has been granted read/write to my Subject area.
I have set the environment variables, modified the instancesconfig.xml and tried all the things i could've found on the OTN but BI Answers continues to give me this ERROR
View Display Error
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000]
[nQSError: 10058] A general error has occurred.
[nQSError: 43113] Message returned from OBIS.
[nQSError: 43119] Query Failed:
[nQSError: 17001] Oracle Error code: 1017, message: ORA-01017: invalid username/password; logon denied at OCI call OCISessionBegin.
[nQSError: 17014] Could not connect to Oracle database. (HY000)
SQL Issued: SELECT 0 s_0, "SAP_AVIS"."Fait SAP AVIS"."Avis" s_1 FROM "SAP_AVIS" FETCH FIRST 65001 ROWS ONLY
Please help, I am desperate.

I have been able to resolve my OCI ORA-01017 error.
The problem was caused by my connection pools.
I had a connection amed "A" to access tables in a certain schema in my DB and another connection named "B" this time to access tables in another schema but in the same DB.
In Oracle BI Answers (presentation), I was trying to view data whitin the connection B but strangely OBIEE Answers was using the connection A.
In the end I removed/renamed the connection A and everthing worked like nothing never happend.
I am not saying that this is the best method. Maybe i skipped a config that assigns the default connection pool to use but it did the job.

Option 1:
Copy your tnsnames.ora to {Oracle_BI1}\network\admin directory & {oracle_common}\network\admin directory
Option 2:
Instead of using tnsnames.ora entry in the RPD, use the full expanded tnsnames.
I have never faced this issue, so I'm not sure this'll work or not but you can try. Option 2 might just do the trick.
Vijay.

For me oracle client was not installed,
when I Installed the oracle client problem got solved

Related

Oracle SQL Developer Error: Connection (CONNECTION_ID=CUJgpQYpQbOXdhiXCUyR3Q==) Vendor code 17002 Issue

I am getting problem in connecting to my database in Oracle SQL Developer. Whenever I try to connect to my database, it gives me this error:
An error was encountered performing the requested operation:
IO Error: The Network Adapter could not establish the connection (CONNECTION_ID=CUJgpQYpQbOXdhiXCUyR3Q==)
Vendor code 17002
Actually, I just use Oracle SQL developer to learn about queries running on a database. I have been using this database since a month but suddenly this error appeared now when I try to connect to the database directly or even manually. Please help me. Any help will be highly appreciated. Thanks in advance.
This is the screenshot for further details:
I tried to do it through an SSH tunnel but stuck there also.

ORA-01017: invalid username/password; logon denied with container DOCKER

good morning I am writing because I am trying to connect to an oracle 12c database that is in an oracle container, the question is what I am doing with a user that created but I get the error ORA-01017:
On the other hand, if I try the system user with his password that can be obtained at the following link: https://hub.docker.com/_/oracle-database-enterprise-edition?tab=reviews, everything works fine and the connection it's correct:
As you can see below the user is already created and I can even connect from the server to the database:
Try applying what you say in this question: ORA-01017 Invalid Username/Password when connecting to 11g database from 9i client but no change my problem
Update: for some reason the changes I am making through the console I am not seeing with the SQL Developer client, I do not understand why this happens, attached evidence, where you can see that the user cesar created through the console is not visible on the server

Error connecting Oracle - ORA-12638: Credential retrieval failed

I am getting the following error while using linked server in sql to connect and external oracle db
Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "xxxx".
OLE DB provider "OraOLEDB.Oracle" for linked server "xxx" returned message "ORA-12638: Credential retrieval failed".
I am having this issue around 4 out 5 times. So it works only sometimes.
In my case, the test and live oracle DB(external) is on the same physical server with different SID/db instance.
The test connection using OraOLEDB works consistently, it's the live linked server that's the problem.
Also to take out the network from equation I tried connecting oracle live from our test environment and oracle test from our live. Connection to oracle test works fine irrespective and live doesn't.
I can connect to the application fronting the External Oracle DB fine using the live login credentials that are used for the live linked server. So that to me takes the login account out of the question.
Question 1:- Is there any other way to connect to external Oracle DB from either via sql or C#?
I used openrowset as below and get an error:
SELECT *
FROM OPENROWSET('OraOLEDB.Oracle', 'Data Source=external_Oracle_serverIP;Initial Catalog=bbinstance;User id=xxx; Password=xx;',
'SELECT * FROM dbname')
I get the following error
OLE DB provider "OraOLEDB.Oracle" for linked server "(null)" returned message "ORA-12560: TNS:protocol adapter error". Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "(null)".
Question 2: What am I doing wrong above?
When I've encountered this issue, it's because of the following line in sqlnet.ora:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
This causes Oracle to attempt to use Windows Native Authentication Services.
If Oracle cannot authenticate via this method, you'll get the 12638 error. To troubleshoot, change this line to
SQLNET.AUTHENTICATION_SERVICES= (NONE)
and repeat your test to the live database.
Oracle 12c & Above:
Sometimes, there are chances that 2 Oracle Pluggable DB services running under different root databases can run with same listener creating this chaos. Check and stop (if not Prod) unwanted PDB and try connecting to the required DB.

[Oracle][ODBC][Ora]ORA-12170: TNS:Connect timeout occurred ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed

I created a SSIS package to pull data from Oracle database to SQL server database. I have set up ODBC connection successfully on my local machine and on the server, I can connect to Oracle database using sqlplus on both environments.
And my package run fine on my local machine. it also executed successfully when I run it from Package store on the server but the problem is when I run the package as sql job I got this error:
Description:
System.Data.Odbc.OdbcException: ERROR [HY000] [Oracle][ODBC][Ora]ORA-12170: TNS:Connect timeout occurred ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [HY000] [Oracle][ODBC][Ora]ORA-12170: TNS:Connect timeout occurred at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle RetCode retcode) at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection OdbcConnectionString constr OdbcEnvironmentHandle environmentHandle) at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection OdbcConnectionString connectionOptions) at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options Object poolGroupProviderInfo DbConnectionPool pool DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection DbConnectionPoolGroup poolGroup) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection DbConnectionFactory connectionFactory) at System.Data.Odbc.OdbcConnection.Open()
Does it make any senses?
ORA-12170 indicates that the TCP connection to the database listener failed.
If this is an error that happens all the time, then check your connection strings (particularly port numbers), firewalls and network ACLs.
If this is a transient error that doesn't always occur, or it the firewalls and network ACLs seen okay, then check for correct ARP behaviour. I've recently had this problem myself, and have blogged about it at http://distracted-it.blogspot.co.nz/2014/04/ora-12170-tnsconnect-timeout-resolved.html
Hope it helps.
ORA-12170 can result due to a lack of permissions. The Sql Server Agent Service Account must have access to the Oracle Client folder. You can test if this is the problem by logging in to the server as an administrator and trying to run the job manually, if it works this way, then it could be permissions. To change the permissions:
Browse to the Oracle folder, e.g. C:\Oracle64
Right Click the folder, click Properties, Security Tab, Click Edit, Click Add
Change "Locations" to be the machine name that you are on.
Enter the name “NT Service\SqlServerAgent” (this must be exactly right) and click Check Names.
Click OK, Apply, OK to get back to the security tab, you should see that “SQLSERVERAGENT” has a tick for Read & Allow, Read, List folder contents
.
Sometimes this happens when you are accesing to a DBLINK in one of your querys, and the database pointed on the dblink is down, so you have to check that too.

Pentaho error-Error connecting to database: (using class oracle.jdbc.driver.OracleDriver)

While using an SQL select query in a table input step in pentaho DI CE version 4.3, though following error pops up:
Error connecting to database: (using class oracle.jdbc.driver.OracleDriver)
ORA-01017: invalid username/password; logon denied
On rechecking, both the username and password are correct. All connection details like host name, database name, port, etc. are also set correct. The database to be connected to is an Oracle 10g via native access (JDBC). The drivers are also matching, but this error still arises randomly. Sometimes it does, sometimes not. Any ideas?

Resources