I'm looking for a way to automate the generation of DDL's from my database (Sybase IQ).
I found that DBeaver (Windows) can generate the DDL's and that it also has various CLI parameters to control DBeaver. Is there a way to make it generate DDL code and save it to a text file?
Related
I have a csv file which has to be bulk imported to oracle dB. I was working on other sybase dB engine before so I had a sample script which has the environment setup for it. Right now I have to do the process in a oracle dB so what should be the first line I know about the rest other parameters but want to know the path which has to be defined when I write
path/bcp dbtable in data.txt
If anyone could help what should be the path for oracle dB
The primary tools for bulk or flat file loading are:
SQL*Loader
External Tables (and here)
GUI Tools like SQL*Developer
It is much more cumbersome, but if necessary you can roll your own solution with the UTL_FILE PL/SQL package.
I have a script to create database link as following. But the script encounter errorORA-00933: SQL command not properly ended
CREATE DATABASE LINK "MIG_61_TO_74"
CONNECT TO "ABC_DEV" IDENTIFIED BY 'ABC_DEV'
USING 'info001:1521/orcl';
Perhaps the are apostrophies confusing the parser.
This example by Oracle doesn't include them, try it that way.
CREATE DATABASE LINK MIG_61_TO_74
CONNECT TO ABC_DEV IDENTIFIED BY "ABC_DEV"
USING 'info001:1521/orcl';
I have a requirement where I need to run a sql script containing multiple select statement and then to store in a xml file using pentaho. I need to do this using command line as a cron job will initiate the execution of sql script. I tried using execute sql script but no success. Can any one please suggest me how to do it using pentaho or any other better etl tool which is open source. Thanks
I am using SQL Developer 1.5.5 and I need to export some tables from an Oracle 11g database to an xls file. I have tried using spool, but I cannot put in a stored procedure as error comes up. Is there some other alternative to do this?
I am trying to create reports from data base by executing the procedure.
Thanks.
Anton Scheffer (from AMIS.NL) wrote an APEX plugin to load Oracle data into a Excel file. It works very well and it can be used alone (without APEX) with a additional work.
Check out: http://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
You can also use SQLX (see http://technology.amis.nl/2006/01/20/generate-anative-excel-file-with-sqlx/) but it could be very complex depending on what you ha
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.