Select database Category
We have 4 options in Reading Method
Read Method = Table /user-defined SQL / Auto generated / SQL builder generated SQL
Oracle Data set
Oracle properties Source Read Method = Table (Select)
Table = EMP (Specify)
DB options = { user = <<user>>, password = <<password>>}
DB options Mode = Auto generate
Password = Tiger
User = Scott
[change the SQL type of Hire date from Data to time stamp ]
Now view Data
Do you want to master DataStage? Then enrol in "DataStage Training" This course will help you to master DataStage
SQL Query = Select e no, e name, Sal from emp where dept no = 10
↓
(click on columns on the right side, to view all the column names of EMP tables
That is e no, e name Sal, job, Hire data,……)
Oracle enterprise − Dataset
↓
First head method = Table load and then go for Auto-generated SQL
Properties Read Method = Auto-generated SQL Read Method = user-defined SQL
SQL Query = Select emp no, e name, job from emp where dept no = 10;
Now go to file
Now
Oracle Enterprise — Dataset
↓
Properties Read Method = SQL builder generated SQL.
SQL Query = <<SQL builder Query>>
Password = Tiger
User = Scott click on build SQL
Remote Server = Oracle à Build new Query (oracle 9 syntax)
Table Definition – plug in – ORACLE 9- Scott –Select EMP, DEPT
Here double click on the required columns from both the table.
Required columns will be displayed
Predicates expression editor
↓ ↓
Comparison in link null emp. Dept no = 10 add
Note :
The data connection is only in the 8 versions.
It is a technique for saving and reusing stage property values.
Suppose that we have 3 different oracle enterprises, and in 1 oracle enterprise We create a data connection, then it automatically other 2 records enterprise Should the username, password.
(i) Oracle enterprise Data set
↓ ↓
Properties User = Scott
Password = Tiger
Remote Server = Oracle StageData connection Browse Save data connection data connection Name = stark Save Data connection as Table Definition Star Save ok
Properties stage data connection = load data connection Table Definition star open ok (it that is oracle enterprise automatically gets user id, pwd, a remote server)
The second way of creating Data connection:- (BY default to all oracle enterprise)
will be automatically displayed.
View Repository Table Definition select Data connection Right-click delete
ODBC enterprise — Dataset
Properties Read method = Table
Table = EMP
Connection Data source = chaladi
Click on connection user = Scott password = tiger
Columns à load à view data
Start control panel Administrate Tools Data source (ODBC) System DSN Add Microsoft ODBC for oracle finish Data source = chaladi user = Scott Server = oracle ok
[Data source Name is created with the Name “chaladi”]
Automatically handles the conflict between Source data type and Data stage datatypes.
ODBC Connector ----- Data set
Double click on ODBC connector it lists the DSN Names Select the Data Source (that is chaladi) ok username = Scott password = tiger Click on test display the connection is good SQL Select Statement = select * from EMP click on view Data
Note :
Version dependent
It works only with the versions that are associated with Dataset(that is it can access Oracle 9 i but not oracle10g and 11g). To overcome this, we have a substitute that is ODBC connector
Good performance
Oracle enterprise supports reject link at target but not at the source
In oracle enterprise à while loading àIn import à, we are using plugin Metadata
Then we need to change Data Datatype to Time Stamp.
But while import à use or Orchestrate.
It automatically takes à time stamp Best Results.
Sheet, sheet 2, …
While reading Data with ODBC
Sheet 1 becomes Table 1
Sheet 1 becomes Table 2
Starts programs micro soft excel create excel sheet EMP DEPTRename the sheet1, sheet2 save then with .xls extension
Start à control panel administrative Tools Data source system DSNAddMicrosoft excel Driver (* .xls) à Data source Name = chaladil Select Workbook D:/shilpa à Double click dept .xls emp .xls Select Emp.xls ok Select chaladil
ODBC enterprise — Dataset
Properties Read Method = Table
Data source = chaladil
User = admin system user id and password
Password = phil
Now, in properties
Table = “EMP$” (always table name should be in double quotes followed with $ symbol)
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.