How to import data using codes in SQLDEV? - oracle

How to import data using codes in SQLDEV?
I don't want to do it manually. I want to know if there's a way to import from a .csv file using codes.

The code executed in SQL DEVELOPER run on DMBS(your Oracle instalation, the server).
The IDE take your comands(click on schema browser, filters, etc) and transfrom them into commands to the server.
So, you have only Oracle code (SQL and PL/SQL(and Java, etc)) that runs on Server, you don't have code that runs in SQL Developer.
Importing a table can be done:
Using the wizard from IDE (click on table and then choose import)
Using the sqlloader on a Oracle client.
Using External Tables on Server side.

Related

How to import a csv into a remote Oracle database?

I have a dump from a database in a csv format ('|' character as the delimiter), and I want to import that into a remote Oracle database. I am using AWS and the csv is on an EC2 instance running amazon linux, and the remote Oracle database is an RDS instance. This is the first time I'm touching an Oracle database.
I expected this to be fairly simple, but trying to find info I kind of got lost. Some people say to use SQL*Loader, but I can't manage to even install that thing. Other's say that SQL*Loader is not supposed to even be installed on something that isn't the actual database server. So far I've only managed to install sqlplus and connect to the database, but no importing so far.
Basically I'm looking for an equivalent of \COPY in psql, but for Oracle. And how on earth would I use it in this context.
If you don't want to use SQL*Loader and only need to import CSV as a one time task, I would recommend using SQL Developer. If you want an automated process, SQL*Loader would probably be your best bet.
Here are some links (note that an Excel import and a CSV import are nearly identical):
How to move csv file into oracle database using sql developer? [closed]
How to Import from Excel to a New Oracle Table with SQL Developer
How to Import from Excel to Oracle with SQL Developer

How to open the datapump file (External Table Oracle)?

I am going to unload the data from my table in Oracle DB to a file using oracle datapump. I am aware that I can import the file in to a different DB using datapump but would like to know if there is any other way to import or open the file?
i.e After the file is generated, I am going to send the file to my client who has no idea about Oracle DB etc. So is there any software or UI using which my client can open the file rather than using Oracle datapump to import (if no other go I will educate the client)? The reason I am going for external table etc because I have 50 million records that client wants to view.

Import the Cognos 10 Trial GOSALES schema (with data) into Oracle Database

I have installed the Cognos 10.2 Trial version. The installation comes a sample schema called "GoSales".
I would like to import the GoSales schema into my Oracle database. This will enable me to view the GoSales Schema in a database query tool (i.e. TOAD)
My ultimate goal is to:
- Understand the GoSales schema.
- Make sure that the reports I develop using Cognos Studio are correct by checking the data in the database.
So, how can I import the "Go Sales" schema into my Oracle database?
There is a compressed file with the Cognos BI samples. I guess you can download this file from IBM. Its name is bi_smps_10.2.1_mp_ml.tar.gz.
You have to uncompress this file and execute the script ...\win\GOSaleConfig.bat (for a Windows machine). This script will ask you the connection parameters of your Oracle database and create the schemas with sample data.

how to copy records of excel to exsist table in data base in Webmatrix

I have an excel sheet of 1400 records.
So Ineed to copy them to exsisting table in my data base.
I try many times to do that in elegant way but...nothing.
I looking for simple method to do that without code..
How can I do that?
I'd be grateful to anyone who can explain me all the process...
thanks again..
If you are using Sql CE as database server, the best solution is to convert your Excel file into CSV and import the CSV file using SQL Server Compact Standalone Toolbox.
You can find a thread that outlines the procedure at this link: Loading Comma Delimited Text Data Into WebMatrix.
Otherwise, if you are using MS SQL Server, SQL Server Management Studio makes available an exhaustive SQL Server Import and Export Wizard with a lot of functions.

Import and Export Data plus schema using SQLDeveloper 3.0.04

i am newbie to oracle and i like to export database from remote database and import it on local machine. eOn both machines i have oracle 10.2.
I need to know how to export/import schema and data from oracle 10.2 using SQLDeveloper 3.0.0.4.
To export from remote database, i have used export Tool-> Database Export -> export wizard.
and at the end i have got only sql file with DDL and DML statements but somewhere in file it is written
"Cannot render Table DDL for object XXX.TABLE_NAME with DBMS_METADATA attempting internal generator error.
I have ignored previously mentioned message and tried to run those DDL and DML statements but all this ended up with errors.
Is it possible that all this tied with read-only database user? More over, i dont find any table under tables but also tables under other users in SqlDeveloper.
Thanks in advance
As a test, can you select one object in the tree, and navigate to the script panel? SQLDEV also uses DBMS_METADATA to generate those scripts.
Also, as a work-around, try using DataPump to export and import your data. It will be much more efficient for moving around larger schemas.
Your note about not seeing tables under indicates your schema doesn't actually own any tables. You may be working with synonyms that allow you to query objects as if they are in your account. You could be running into a privilege issue, but your error message doesn't indicate that. Error messages often come in bunches, and the very first one is usually the most important.
If you could try using the EXPORT feature say against a very simple schema like SCOTT as a test, this should indicate whether there is a problem with your account settings or with the software.
I'm not sure with SQL Developer 3.0 but with version 3.1 you can follow this:
SQL Developer 3.1 Data Pump Wizards (expdp, impdp)

Resources