SQLLDR in instantclient_21_9 cannot run - oracle

I'm a Window user and I have a problem with Oracle SQLLDR.
Whenever I run SQLLDR in CMD, it shows Errors: The code execution cannot proceed because xxx.dll was not found. It pops up several times for some xxx.dll files missing.
I have both instantclient_21_9 and ODAC122011 in my computer. ODAC122011x64 is required by PowerBI to Get data from Oracle database. And I'm still able to connect to Oracle database as well.
I have followed many instructions but they all not work to me. Then I really need your help here.
I have download:
instantclient-basic-windows.x64-21.9.0.0.0dbru.zip
instantclient-sqlplus-windows.x64-21.9.0.0.0dbru.zip
instantclient-tools-windows.x64-21.9.0.0.0dbru.zip
from https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html
and extract them all in the same directory
I have set PATH in System Variable as below
The ODAC122011\product\12.2.0\client_1 must be above for PowerBI getting data from Oracle Database
I have also tried to remove ODAC from PATH to test, but it's still the same error:

Related

Preprocessor on Oracle external table, batch seems not executed. What is missing?

On a Windows server 2016, we have an Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production running.
The goal is to have an external table created with a "preprocessor" command, triggering a batch file that will retrieve file infos like file size, date, name, with a "DIR" cmd.
We followed the steps described in this link: http://www.oracle-developer.net/display.php?id=513, we did exactly the same.
On another server owned by us, this is working directly.
On this Windows server 2016, the select statement on the external table returns no records. Absolutely no error created, only a logfile for the external table, which says not much.
The locations were the different files are stored are accessible for the OS-user Oracle. Oracle is able to read, "browse" through this paths and directories.
But the batch seems not executed.
What are we missing?
Thanks!
for the moment, I've found a workaround:
. I checked that I could execute a batch via "dbms_scheduler.create_job". Funny enough, it is the same (more or less) and in the same place as the one supposed the be executed by the preprocessor command of the external table.
Now, I create dynamically a batch via UTL_FILE (this is matching my need), then execute it via "dbms_scheduler.create_job". This batch is sending the results in a txt file.
I have then an external table pointing to this txt file.
Everything runs in a small procedure, where I can catch errors and log steps if needed, so I should be happy with this.
Nevertheless, I would have loved to understand what was the issue with the external table + preprocessor command...

Silently Uninstall Oracle 10g from Windows 10

Currently have Oracle 10gR2 running across a number of machines, I am trying to figure out how to silently uninstall it. No need to retain any data etc.
To install it we currently run the following :
#c:\build\buildfiles\oracle\oraclexeuniv.exe /s /f1"C:\build\buildfiles\oracle\oraclexe-install.iss" /f2"c:\build\buildfiles\oracle\oraclexe-install.log"
I can see from searching online that a similar method can be used to uninstall, but by calling a file with the correct parameters to facilitate an uninstall. However I cant find any information on what needs to be in this file.
This link https://community.oracle.com/tech/developers/discussion/2413545/silent-unistall-of-oracle-xe does have an example, but when I use that data in my Remove file, I get a error of -3 returned.
Any help greatly appreciated.

How to load flat file into Oracle database

I am trying to import data from a csv file to an Oracle database, I am using Visual Studio 2017 I have downloaded all required components such as SSDT 15.8; and Attunity version 5.0
I was wondering if someone could please guide me on how I can load the flat file from csv to an Oracle table.
So far, I dragged and dropped the flat file and connected it to an Oracle Destination, however, even after mapping, as you can see, the red cross in Oracle Destination is still there
And when I tried to "Start" the process, this is the error message I got:
If somebody could please help me, that would be great. Below is a screenshot of the mapping i did:
thank you
Thank you for our help everyone, I resolved it by ensuring that the datatype in source matches the datatype in destination. Also, a major thing to consider is to ensure that the user you are logged in as has permission to write to the database, the user I was logged as did not have permission which is why I was getting that error

Visual Studio can not resolve tns

i have a problem for a while but suddenly it became a terminal error since i got to do this task 'today'. i already tried everything suggested.
caused by a problem at installing oracle i found a workaround and i connect to database with connectionstring below, which works:
Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MYDATABASE)));User ID=myusername;Password=mypassword;
and in that database i have a connections table which my datalayer uses to connect to other databases.
so here begins the problem. when i try to connect to other databases i get the error: ORA-12154: TNS:could not resolve the connect identifier specified.
long story short: i can not touch that table. tnsping does work, so does toad. but plsql developer and visual studio can not. i mean there should be a problem with listener, sqlora, tnsnames or such specific oracle file and i cant find what.
for VS i'd try putting the tnsnames.ora in the bin folder of the app. For sqlplus i'd check that it is in C:\Orant\

SQL Developer - No readers registered for SQL type error

I am using Oracle 11g. I had exported data using the installed version of SQL Developer to a sql file called "export.sql". Now, I have downloaded the new version which is 3.1.07 and when I try to import data by clicking on the tree view and choosing Tables | Import Data and navigating to "export.sql", I get the following error:
no readers are registered for the sql type
When I first started the application it asked for the path to java.exe and I have shown that path and application started. I have the started the application from the path where it was downloaded (C:\users\kaushik\Downloads\sqldeveloper)
You can call the file directly from sql developer.
Example: If you saved you file to c:\Oracle\MyBackups\Export.sql
Then from within Sql Developer, connect to your database and use the sql command:
#C:\Oracle\MyBackups\Export.sql
and that will execute the Export.Sql script.
If you have a valid SQL file, you simply need to execute the script. Open the file (File | Open and navigate to export.sql), hit the Run Script button (F5 on Windows), and choose the connection you want to use. The Data Import Wizard supports a number of different file formats (Excel, CSV, etc.). It doesn't support SQL files. If you want to ask the developers why they don't support SQL (or why they use the general file navigation dialog rather than using different dialogs for different sorts of files) you can ask them over in the SQL Developer forum on OTN. I assume the problem is that most SQL scripts contain much more than simple INSERT statements and it would be challenging to figure out whether any particular script was actually just a bunch of INSERT statements that could be used to import data.
Yes, SQL Developer is written in Java so you need to have an appropriate version of the JVM installed. Different SQL Developer download options include a bundled JVM or you can download a smaller file and use an already installed JVM.
One of oracle client tools to make session to database is sqlDeveloper and its graphical interface tool Programmed with Java Lang and its installed independently from oracle_home its a stand alone product and Of Course it needs SDK Or JDK to work
make sure to set the path and check it
read this link http://www.ehow.com/how_5127784_set-java-path.html
all of this if sql developer didn't run and other similar problem
this to answer
Is JDK is needed or what ? Yes
use sql Developer higher version
i am upgraded to Version 20.2.0.175
issue resolved

Resources