Professional Documents
Culture Documents
<marquee>odioracledataintegrator</marquee>
0
More NextBlog
CreateBlog
odioracledataintegrator
I am here to discuss which people might not be aware or wouldn't have observed including malpractices and best practices.
Blog Archive
HOW DOES ONE ADD A DAY / HOURS / MINUTES / SECONDS TO A DATE VALUE
2016 ( 104 )
SQL>SELECTSYSDATE,SYSDATE+1/24,SYSDATE+1/1440,SYSDATE+1/86400
February ( 104 )
HOW DOES ONE ADD A DAY / HOURS /
MINUTES / SECONDS...
HOW TO RETRIEVE THE Nth HIGHEST SAL
FROM A TABLE
FROMDUAL
SYSDATESYSDATE+1SYSDATE+1SYSDATE+1
29JAN1429JAN1429JAN1429JAN14
1 comment
Labels: SQL
DISPLAY EMPNO,ENAME,JOB,SAL,DEPTNO
OF THOSE EMPLOY...
DISPLAY EMPNO,ENAME,JOB,SAL AND
DEPTNO OF THAT EMP...
DISPALY EMPNO,ENAME,JOB AND DEPTNO
OF THOSE EMPLOY...
DISPLAY DEPTNO,ENAME OF THAT DEPT
WHERE NO EMPLOYE...
What are constraints?
How to add a new constraint to an new
table or to ...
OR
SELECT*FROM(SELECTA.*,DENSE_RANK()OVER(ORDERBYSALDESC)
RNK_POSITIONFROMEMPA)WHERERNK_POSITION=2
1 comment
Labels: SQL
ENAME,JOB,SAL,DEPTNO,ROWNUMRNFROMEMP)WHERERN=(SELECT
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
1/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
MAX(ROWNUM)FROMEMP)
EMPNOENAMEJOBSALDEPTNO
7934MILLERCLERK130010
1 comment
Labels: SQL
Get no.of employees working under each manager. Column names may vary
SQL>selectmgr,count(1)fromempwheremgrisnotnullgroupbymgr
MGRCOUNT(*)
78393
77821
76985
79021
75662
77881
Labels: SQL
select*from(selectdeptno,sum(sal)salfromempgroupbydeptnoorderbysaldesc)where
rownum=1
1 comment
Labels: SQL
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
2/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
select*fromempwhere(deptno,sal)in(selectdeptno,max(Sal)salfromempgroupby
deptno)
1 comment
Labels: SQL
WITH Clause
select*from(selecta.*,rownumrnfromempa)wherern=(selectmax(rownum)from
emp)
or
select*fromempwhererowid=(selectmax(rowid)fromemp)
1 comment
What is DataWareHouse?
Labels: SQL
FROMEMP)WHEREMOD(RN,2)=1
OLTP vs OLAP?
How To Reset ODI Studio Desktop Display
To Default...
EMPNOENAMEJOBSALDEPTNORN
7369SMITHCLERK800201
7521WARDSALESMAN1250303
7654MARTINSALESMAN1250305
7782CLARKMANAGER2450107
7839KINGPRESIDENT5000109
7876ADAMSCLERK11002011
7902FORDANALYST30002013
1 comment
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
3/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
+1 Recommend this on Google
Labels: SQL
EMPNOENAMEJOBSALDEPTNORN
7369SMITHCLERK800201
7521WARDSALESMAN1250303
7654MARTINSALESMAN1250305
7782CLARKMANAGER2450107
7839KINGPRESIDENT5000109
7876ADAMSCLERK11002011
7902FORDANALYST30002013
1 comment
Labels: SQL
WRITE A QUERY TO DISPLAY THOSE EMPLOYEES WHOSE ROW POSITIONS ARE 5 AND 8
SQL>SELECT*FROM(SELECTEMPNO,ENAME,JOB,SAL,DEPTNO,ROWNUMRN
FROMEMP)WHERERN=5ORRN=8
EMPNOENAMEJOBSALDEPTNORN
7654MARTINSALESMAN1250305
7788SCOTTANALYST3000208
1 comment
Labels: SQL
4/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
Pseudocolumnsarecolumnswhichphysicallydoesntexistornotcreatedbyanybodyinthe
DBbutcanbequeriedatruntimetoseetheirvalues.
Example:
PSUEDOCOLUMNS:
1.SYSDATE
2.CURRENT_DATE
3.ROWID
4.CURRVAL
5.NEXTVAL
6.LEVEL
7.ROWNUM
1 comment
Labels: SQL
EMPNOENAMEJOBSALDEPTNO
7369SMITHCLERK80020
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
5/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
7499ALLENSALESMAN160030
7521WARDSALESMAN125030
7654MARTINSALESMAN125030
7782CLARKMANAGER245010
7844TURNERSALESMAN150030
7876ADAMSCLERK110020
7900JAMESCLERK95030
7934MILLERCLERK130010
1 comment
Labels: SQL
EMPNOENAMEJOBSALDEPTNO
7934MILLERCLERK130010
1 comment
Labels: SQL
EMPNOENAMEJOBDEPTNO
7566JONESMANAGER20
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
6/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
7698BLAKEMANAGER30
7782CLARKMANAGER10
7788SCOTTANALYST20
7839KINGPRESIDENT10
7902FORDANALYST20
Sharethis:
1 comment
Labels: SQL
SQL>select*fromdeptwherenotexists(select1fromempwhere
dept.deptno=emp.deptno)
or
SQL>SELECTDEPTNO,DNAMEFROMDEPTWHEREDEPTNOIN(SELECT
DEPTNOFROMDEPTMINUSSELECTDISTINCTDEPTNOFROMEMP)
or
SQL>SELECTDEPTNO,DNAMEFROMDEPTWHEREDEPTNOIN(SELECT
DEPTNOFROMDEPTMINUSSELECTDISTINCTDEPTNOFROMEMP)
1 comment
Labels: SQL
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
7/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
thatrestrictsthevaluesinadatabase.OracleDatabaselets
youcreatesixtypesofconstraintsandletsyoudeclarethem
intwoways.
1 comment
Labels: SQL
Itispossibletoaddanewconstrainttoanexistingtableorto
anewtable.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
8/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
belowarethedifferentwayswecanaddacolumn.
Indatabasedesign,acompoundkeyisakeythatconsistsof
twoormoresimplekeysthatuniquelyidentifyanentity
occurrence.Asimplekeyisonethathasonlyone
attribute.Compoundkeysmaybecomposedofotherunique
simplekeys,butmaynotincludeanothercompoundkeyorA
keyformedbycombiningatleasttwoormorecolumnsis
calledcompositekey.
Acandidatekeyisakeythatuniquelyidentifiesrowsina
table.Anyoftheidentifiedcandidatekeyscanbeusedasthe
tablesprimarykey.Candidatekeysthatarenotpartofthe
primarykeyarecalledalternatekey.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
9/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
Onecandescribeacandidatekeyasasuperkeythatcontains
onlytheminimumnumberofcolumnsnecessarytodetermine
uniqueness.
Therecanbeakeyapartfromprimarykeyinatablethatcan
alsobeakey.Thiskeymayormaynotbeauniquekey.For
example,inanemployeetable,empnoisaprimarykey,
empnameisaalternatekeythatmaynotbeuniquebutstill
helpsinidentifyingarowofthetable.
Analternatekeyissimilartoaprimarykey.Itacceptsnull
valueswhereastheprimarykeydoesnot.Thenullvalues
canbesubmittedtotheattributeinatuple.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
10/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
KEYSAREOF2TYPES.
1.TABLELEVELCOLUMNS
2.COLUMNLEVELCOLUMNS
APARTFROMNULLCONSTRAINTRESTOFALLTHE
CONSTRAINTSCANBEADDEDATTABLELEVEL.
HOWTOCREATEACONSTRAINTWHILE
CREATINGATABLE
ADDINGACONSTRAINTATTABLELEVEL:
CREATETABLEtable_name
(
column1datatypenull/notnull,
column2datatypenull/notnull,
...
CONSTRAINTconstraint_namePRIMARY
KEY(column1,column2,...column_n)
);
ADDINGACONSTRAINTATCOLUMNLEVEL:
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
11/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
CREATETABLEtable_name
(
column1datatypePRIMARYKEY,
column2datatypenull/notnull,
...
);
HOWTOADDACONSTRAINTTOANEXISTING
TABLE
ALTERTABLEsupplier
ADDCONSTRAINTsupplier_pkPRIMARYKEY
(supplier_id,supplier_name);
ALTERTABLEtable_name
ADDCONSTRAINTconstraint_name
FOREIGNKEY(column1)
REFERENCESparent_table(column1);
1 comment
Labels: SQL
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
12/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
Clickonhttp://myorastuff.blogspot.in/2009/05/deferredconstraints.htmlfordetail
description.
1 comment
Labels: SQL
WITH Clause
andwasaddedintotheOracleSQLsyntaxinOracle9.2.TheWITHclausemay
beprocessedasaninlinevieworresolvedasatemporarytable.Theadvantageof
thelatteristhatrepeatedreferencestothesubquerymaybemoreefficientasthe
dataiseasilyretrievedfromthetemporarytable,ratherthanbeingrequeriedby
eachreference.Youshouldassesstheperformanceimplicationsof
Forreferenceandexamplesusethebelowlink.
https://oraclebase.com/articles/misc/withclaus
1 comment
Labels: SQL
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
13/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
Aviewcanbecreatedevenifthedefiningqueryoftheviewcannotbeexecuted.
Wecallsuchaviewasviewwitherrors.
Forexample,ifaviewreferstoanonexistenttableoraninvalidcolumnofan
existingtableoriftheowneroftheviewdoesnothavetherequiredprivileges,
thentheviewcanstillbecreatedandenteredintothedatadictionary.
Wecancreatesuchviews(i.e.viewwitherrors)byusingtheFORCEoptioninthe
CREATEVIEWcommand:
Example:
createforceviewv1asselect*fromxyz
whenwetrytoquerythedatafromview:
select*fromv1belowerrorwastriggered.
ORA04063:viewSCOTT.V1haserrors
04063.00000%shaserrors
*Cause:Attempttoexecuteastoredprocedureoruseaviewthathas
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
14/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
errors.Forstoredprocedures,theproblemcouldbesyntaxerrors
orreferencestoother,nonexistentprocedures.Forviews,
theproblemcouldbeareferenceintheviewsdefiningqueryto
anonexistenttable.
Canalsobeatablewhichhasreferencestononexistentor
inaccessibletypes.
*Action:Fixtheerrorsand/orcreatereferencedobjectsasnecessary.
ErroratLine:72Column:15
1 comment
Labels: SQL
belowtablewillbehavingallthetableinfoalongwithsizeoccupied,no.of
records,etc
select*fromDBA_TABLESWHEREOWNER=SCOTT
togettheno.ofrecordsofatable
selectnum_rowsfromdba_tableswhereowner=SCOTTAND
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
15/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
TABLE_NAME=EMP
NUM_ROWS
5194
1 comment
Labels: SQL
wecanaddacommenttoanexistingtableusingfollowingcommands.
Syntax:COMMENTON<TABLE_NAME>IS<COMMENT>
ALLTHECOMMENTSTATEMENTSAREAUTOCOMMIT
STATEMENTS.
COMMENTONTABLEEMP
ISTHISISCREATEDFORLEARNINGPURPOSEBYDEFAULT
COMMIT
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
16/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
COMMENTONTABLEDEPTISTHISISCREATEDFORLEARNING
PURPOSE
ROLLBACK
howtofindthecommentsofatable?
select*fromall_tab_comments
select*fromall_tab_commentswheretable_name=EMP
OWNERTABLE_NAMETABLE_TYPECOMMENTS
SCOTTDEPTTABLETHISISCREATEDFOR
LEARNINGPURPOSE
FORCOLUMNS:
syntax:COMMENTONCOLUMNEMP.EMPNOISthiscontainstheempnoof
alltheemployeesuniiquelysinceitishavingtheprimarykeyonit
select*fromSYS.ALL_COL_COMMENTSwhere
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
17/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
COLUMN_NAME=EMPNO
OWNERTABLE_NAMECOLUMN_NAMECOMMENTS
SCOTTEMPEMPNOthiscontainstheempnoofalltheemployeesuniiquely
sinceitishavingtheprimarykeyonit.
@NOTE:itisnotpossibletoaddacommentwhilecreatingatablewithoutusing
aseparatecommand
1 comment
Labels: SQL
ifwewanttofindthecommentsfordictionarytableswecanusethecommand:
select*fromdictionarywheretable_name=ALL_TABLES
TABLE_NAMECOMMENTS
ALL_TABLESDescriptionofrelationaltablesaccessibletotheuser1
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
18/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
1 comment
Labels: SQL
weneedtologintotheusersysorsystemtodropanyuser,iftheuserdoesnthave
anysharingwithotherusersthentheSCHEMAcanbedroppedstraightaway
usingDROPUSERcommand,whereinthecaseofsharingwehavetouse
CASCADEalongwithDROPUSERCOMMAND.
Example:userwithoutanysharing,
DROPUSER<user_name>
Example:userwithsharing,
DROPUSER<user_name>CASCADE
Errorstartingatline:xxincommand
dropuserxys
Errorreport
SQLError:ORA01922:CASCADEmustbespecifiedtodropXYS
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
19/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
01922.00000CASCADEmustbespecifiedtodrop%s'
*Cause:Cascadeisrequiredtoremovethisuserfromthesystem.The
userownsobjectwhichwillneedtobedropped.
*Action:Specifycascade.
IfwedonotusetheCASCADEalongwiththedropcommandaboveerrorwill
occur.
1 comment
Labels: SQL
What is the default no. of attempts to lock an account in case of wrong password?
FOLLOWINGARETHEDEFAULTPARAMETERSWILLBESETTOANYUSERCOMESBY
DEFAULTFORolderversions.
ThisscriptaltersthedefaultparametersforPasswordManagement
ThismeansthatalltheusersonthesystemhavePasswordManagement
enabledandsettothefollowingvaluesunlessanotherprofileis
createdwithparametervaluessettodifferentvalueorUNLIMITED
iscreatedandassignedtotheuser.
EnablethisifyouwantolderversionofthePasswordProfileparameters
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
20/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
ALTERPROFILEDEFAULTLIMIT
PASSWORD_LIFE_TIME60
PASSWORD_GRACE_TIME10
PASSWORD_REUSE_TIME1800
PASSWORD_REUSE_MAXUNLIMITED
FAILED_LOGIN_ATTEMPTS3
PASSWORD_LOCK_TIME1/1440
PASSWORD_VERIFY_FUNCTIONverify_function
FOLLOWINGARETHEDEFAULTPARAMETERSWILLBESETTOANYUSERCOMESBY
DEFAULTfornewversion(FOR11G)
ALTERPROFILEDEFAULTLIMIT
PASSWORD_LIFE_TIME180
PASSWORD_GRACE_TIME7
PASSWORD_REUSE_TIMEUNLIMITED
PASSWORD_REUSE_MAXUNLIMITED
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
21/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
FAILED_LOGIN_ATTEMPTS10
PASSWORD_LOCK_TIME1
PASSWORD_VERIFY_FUNCTIONverify_function_11G
1 comment
Labels: SQL
wewanttoassignaprofilemanuallywecanusethebelowsyntax:
CREATEUSER<user_name>IDENTIFIEDBY<pasword>PROFILE<profile_name>
orifwewanttoaltertheprofileofauserwecanusethefollowingsyntax:
alterprofilefinance_usersetfailed_login_attempts=4
1 comment
Labels: SQL
1 comment
Labels: SQL
how to calculate the max value till current row, after the current row in a oracle
table?
selecta.*,max(sal)over(orderbydeptnorowsunboundedpreceding)max_sal_til_current_row,min(sal)over(orderby
deptnorowsunboundedpreceding)min_sal_til_cur_row,
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
22/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
max(sal)over(orderbydeptnorowsunboundedpreceding)max_sal_from_cur_row,min(sal)over(orderbydeptnorows
betweencurrentrowANDunboundedfollowing)min_sal_from_cur_rowfromempa
Posted by venkatesh amruthapudi at 02:12
1 comment
Labels: SQL
EMPNO
ENAME
JOB
MGR
HIREDATE
SAL
COMM
CUMULATIVE_S
DEPTNO
AL
16179 SMITH
CLERK
7902 17DEC80
800
20
800
16216 SMITH
CLERK
7902 17DEC80
800
20
1600
16235 SMITH
CLERK
7902 17DEC80
800
20
2400
16979 SMITH
CLERK
7902 17DEC80
800
20
3200
16016 SMITH
CLERK
7902 17DEC80
800
20
4000
16071 SMITH
CLERK
7902 17DEC80
800
20
4800
16134 SMITH
CLERK
7902 17DEC80
800
20
5600
16209 SMITH
CLERK
7902 17DEC80
800
20
6400
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
23/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
1 comment
Labels: SQL
7566JONESMANAGER783902APR812975020
7876ADAMSCLERK778823MAY871100020
7900JAMESCLERK769803DEC81950030
Posted by venkatesh amruthapudi at 02:02
1 comment
Labels: SQL
7369ALLENSALESMAN769820FEB81160030030
7521WARDSALESMAN769822FEB81125050030
7654MARTINSALESMAN769828SEP811250140030
7698BLAKEMANAGER783901MAY812850030
7782CLARKMANAGER783909JUN812450010
7876ADAMSCLERK778823MAY871100020
7900JAMESCLERK769803DEC81950030
Posted by venkatesh amruthapudi at 01:59
1 comment
Labels: SQL
7521WARDSALESMAN769822FEB81125050030
7839KINGPRESIDENT17NOV815000010
7902FORDANALYST756603DEC813000020
Posted by venkatesh amruthapudi at 01:47
1 comment
Labels: SQL
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
24/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
OR
SELECT*FROMEMPWHEREENAMELIKE%A%ANDENAMELIKE%E%
EMPNOENAMEJOBMGRHIREDATESALCOMMDEPTNO
7369ALLENSALESMAN769820FEB81160030030
7698BLAKEMANAGER783901MAY812850030
7900JAMESCLERK769803DEC81950030
Posted by venkatesh amruthapudi at 00:42
1 comment
Labels: SQL
7369ALLENSALESMAN769820FEB81160030030
7934MILLERCLERK778223JAN821300010
Posted by venkatesh amruthapudi at 00:41
1 comment
7566S_HWAG
Posted by venkatesh amruthapudi at 00:30
1 comment
Labels: SQL
SQL>SELECT*FROMEMPWHEREHIREDATELIKE%81%
OR
SQL>SELECT*FROMEMPWHERETO_CHAR(HIREDATE,YY)=81
OR
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
25/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
SQL>SELECT*FROMEMPWHEREEXTRACT(YEARFROMHIREDATE)=1981
EMPNOENAMEJOBMGRHIREDATESALCOMMDEPTNO
7369ALLENSALESMAN769820FEB81160030030
7521WARDSALESMAN769822FEB81125050030
7566JONESMANAGER783902APR812975020
7654MARTINSALESMAN769828SEP811250140030
1 comment
Labels: SQL
7566JONESMANAGER783902APR812975020
7788SCOTTANALYST756619APR873000020
Posted by venkatesh amruthapudi at 00:26
1 comment
Labels: SQL
7541SMITHclerk790201JAN01800209600
7744JONESMANAGER783902APR8129752035700
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
26/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
7560SMITHCLERK790217DEC80800209600
7693ALLENSALESMAN769820FEB8116003003019200
Posted by venkatesh amruthapudi at 00:22
1 comment
Labels: SQL
1 comment
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
27/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
hereentertheDBnamewantedtogiveandonpreviligesselecttherolewantedtogrant.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
28/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
belowdiagramshowshowtocreateanewuserintheDBalongwithnameoftheLOGIN,passwordandtherolesprivileges
wantedtogranttouser.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
29/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
30/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
aftercreatingtheDB,loginandschemanowletscreatetheconnectioninTopology.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
31/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
ifwelookatthebelowdiagramIhaveprovidedtheportnumberas1522(Ihavechangedto1522buttheoriginaland
defaultportforPostgreSQLwillbe5432).
hereihaveprovidedalltheparametersproperly,nowletstestconnection.
OOPS!,testconnectionfailedbecausethisisathirdpartydriverhencethesehastobeplaced2locations.
1.C:\Users\vamrutha\AppData\Roaming\odi\oracledi\userlib(forODIStudiototestconnectionwithlocalagent)
2.C:\Windows\System32\cmd.exe(ForStandAloneagenttotestthedataserverconnection)
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
32/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
NowIhaveplacedthedriverinthelocation,whenitesttheconnectionitfailedtoconnectwithlocalagentbecauseafter
placingthedriversIhaventrestarttheStudio.
restartthemachineandseeiftheconnectionissuccessful,ifstilldoesntsuccessrestartthemachine,stilldoesntsucceeds
raiseanSRwithOracleSupportteam.
Pleaseletmeknowifyouhaveanydoubtsorsuggestions.
Regards
Venkatesh
Posted by venkatesh amruthapudi at 22:16
0 comments
Labels: connections in topology , odi , oracle data integrator , postgres , postgresql , topology
33/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
ifwehavemultipleusersusingthesamemachineconcurrentlythensomebody(ex:ODIAdmin)needtologinto
individualusers,copythefileformC:\Users\vamrutha\AppData\Roaming\odi\oracledi\ewalletindividualusershome
folders.
forexampleifIhave3uersnamelyDanny,JohnandMikeweneedtoplacetheewallet.p12in
C:\Users\Danny\AppData\Roaming\odi\oracledi\ewallet
C:\Users\John\AppData\Roaming\odi\oracledi\ewallet
C:\Users\Mike\AppData\Roaming\odi\oracledi\ewallet
howeverifwewanttoenableordisablethewalletpasswordstoragewehaveoptionin12cbutdonthaveoptionin11g
insteadifwedonthaveewalletpasswordstoredin11gthenitwillprompttoenternewpasswordtostorethecredentialsor
elsewecanchoosetostoreinternally.
onceagainifwewanttoenablethepasswordweneeddeletetheewalletpasswordthenwillbeaskingforwalletpassword.
pleasehavealookatthebelowreferencescreenshots,herewedonthaveanyoptioncalledODI>userinterface
belowscreenshotshowshowtoenableordisableewalletpasswordstorageinODI12c.
gotoODIstudio>Tools>Preferences.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
34/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
cselectODI>user_Interface,herewecanseeSaveLoginCredentialsintoWalletoption,ifsettingthisfirsttimecheck
thisoption.
thenwhentriedlogginginwillprompttoenterthepasswordforwalletorelsealsocanchosetostorethepasswords
internallybutnotintowalletwhichequaltodisablingthewalletpassword,herewealsocansettheexpirydateforwallet
password.
pleasehavealookatthebelowscreenshot.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
35/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
likeasotheroraclecredentialswehaveaconstraintwhilesettingthewalletpasswordthatitshouldbehavingminimum8
characterslengthincludingspecialcharacterorelsethebelowerrorwillbetriggered.
Oncewehadsetthewalletpasswordsuccessfullyifwenavigateto
C:\Users\vamrutha\AppData\Roaming\odi\oracledi\ewalletwewillbeabletoseetheewallet.p12file.
nowletsclickonconnect,andinspecttheloginpropertiesinstudiowewillbeabletoseesomethinglikethis.
ifwannadisablethewalletpasswordwillbeaskingforwalletpassword,ifyouforgotthewalletpasswordyoucango
thoughhowtorecoverthewalletpassword
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
36/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
orelsethewallet.p12filefromC:\Users\vamrutha\AppData\Roaming\odi\oracledi\ewallet
andtrytologinintoODIwillbepromptingsomethinglikeasbelowscreen.
onceweenterthewalletpasswordorchosestorepasswordwithoutsecurewalletandlookattheconnectionpropertiesit
willbesomethinglikethis.
heredonhavethepasswordsbutrestofthefieldsareavailable.
ifyoudontknowwhatarethosepasswords,cancontactyourODIAdmins.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
37/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
Feelfreetopostyourquestionsortocomment.
Regards
Venkatesh
Posted by venkatesh amruthapudi at 22:15
0 comments
Labels: ewallet password , ewallet.p12 , odi , oracle data integrator , wallet password
Is it possible to create a constraint at ODI, what and all the types of constraints can
be created at ODI level?
Higuys,
hereiamusingODI11.1.1.9,
inthisarticleIamgonnadiscussaboutdifferenttypesofconstraintsthatcanbecreatedatODIlevel.
yes,itispossibletocreateaconstraintorkeywhichdoesntexistatDBlevelandwantedtocreatedatODI.
thereare2differenttypesofkeysthatcanbecreatedatODIlevel.
1.PrimaryKey.
2.ReferenceKey(ForeignKey)
3.AlternateKey
KeepreferringmyBlogformoreinterestingfeaturesgonnadiscussaboutthesekeytatODIlevelalongwiththeiruse
cases.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
38/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
Thanks
Venkatesh
Posted by venkatesh amruthapudi at 22:13
0 comments
Labels: constraints in ODI , different types of constraints in ODI. , odi , oracle data integrator
intheabovescreenshotsihaveplacedbothadatastoreandadatamodel,formodelihaveselectedMODELCHECK
typeandfordatastoreIhaveselectedDATASTORECHECKtype.
ifwealsoobserveifthereareanysubmodelswithinamodelifwedontselectRECURSESUBMODELSthenthis
checkwillnotbeperformedforthose.
@NOTE:OnlyformodelswehaveanyadditionalforLogging,herewecanspecifywhetherthesessionforthemodel/store
checkhastobeloggedinornot,ifneedstobeloggedinwhetheronlyforfailuresorforall.
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
39/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
KeepfollowingmyblogformoreinterestingfeaturesprovidedwithinODI.
Thanks
Venkatesh
Posted by venkatesh amruthapudi at 22:11
0 comments
Labels: delete error records , delete error records from source. , error records , odi , oracle data integrator
Newer Posts
Home
Older Posts
Google+ Followers
venkatesha
Addtocircles
37haveme View
incircles
all
Popular Posts
Advantages of ODI or why do we need ODI or how ODI is good compared to other ETL tools?
Oracle Data Integrator (ODI) : ODI is also a ETL tool which follows the ELT (Extract Transform Load) process. The main advantage with O...
How to connect PostgreSQL with ODI?
Hi guys, here I am having ODI 11.1.1.9 with JDK 1.7 and PG Admin 1.20.0. and PostgreSQL version 9.4. if you are looking to download an...
What is the difference between IKM Oracle Incremental Update, (Merge), (PLSQL) and (row by row)
IKM Oracle Incremental Update : it performs all inserts, updates and individually however it will be slower since it needs to compare valu...
How to create master and work repository?
please click on Create Master and Work repository for master and work repository creation document.
Caused By: org.apache.bsf.BSFException: exception from Groovy: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Insert_flow_into_I$_table: 6:
unexpected char: \ @ line 6, column 44.
HI Friends, I am back with another unknown error for all of you. When ever we try to use IKM Oracle Incremental Update (row by row) we...
HOW DOES ONE ADD A DAY / HOURS / MINUTES / SECONDS TO A DATE VALUE
SQL> SELECT SYSDATE,SYSDATE+1/24,SYSDATE+1/1440,SYSDATE+1/86400 FROM DUAL; SYSDATE SYSDATE+1 SYSDATE+1 SYSDATE+1 ...
DISPLAY THE ENAME,SAL,12*SAL FROM EMP ORDER BY 12*SAL
SELECT ENAME, SAL*12 ANNUAL_SAL FROM EMP ORDER BY ANNUAL_SAL; OR SELECT ENAME, SAL*12 ANNUAL_SAL FROM EMP ORDER BY SAL*12; OR SEL...
DISPLAY THOSE EMPLOYEES NAME START WITH S AND 2ND CHAR IS _
SQL> SELECT * FROM EMP WHERE ENAME LIKE S\_% ESCAPE \; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO 7566 S_HWA...
What is transactional Data?
What ever the data gets generated from day to day activitiescalled as transactions data, it is frequently gets generated through web appl...
What is the difference between BI and VI?
BI stands for business intelligence, any summered report that contains data and displayed in the form of numbers and characters in a 2 dim...
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
40/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
odioracledataintegrator
I am here to discuss which people might not be aware or wouldn't have observed including malpractices and best practices.
Featured post
Advantages of ODI or why do we need ODI or how ODI is good compared to other ETL tools?
Oracle Data Integrator (ODI) : ODI is also a ETL tool which follows the ELT (Extract Transform Load) process. The main advantage with O...
addthis
AddThis
Wikipedia
Popular Posts
Advantages of ODI or why do we need ODI or how ODI is good compared to other ETL tools?
Oracle Data Integrator (ODI) : ODI is also a ETL tool which follows the ELT (Extract Transform Load) process. The main advantage with O...
How to connect PostgreSQL with ODI?
Hi guys, here I am having ODI 11.1.1.9 with JDK 1.7 and PG Admin 1.20.0. and PostgreSQL version 9.4. if you are looking to download an...
What is the difference between IKM Oracle Incremental Update, (Merge), (PLSQL) and (row by row)
IKM Oracle Incremental Update : it performs all inserts, updates and individually however it will be slower since it needs to compare valu...
How to create master and work repository?
please click on Create Master and Work repository for master and work repository creation document.
Caused By: org.apache.bsf.BSFException: exception from Groovy: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Insert_flow_into_I$_table: 6:
unexpected char: \ @ line 6, column 44.
HI Friends, I am back with another unknown error for all of you. When ever we try to use IKM Oracle Incremental Update (row by row) we...
HOW DOES ONE ADD A DAY / HOURS / MINUTES / SECONDS TO A DATE VALUE
SQL> SELECT SYSDATE,SYSDATE+1/24,SYSDATE+1/1440,SYSDATE+1/86400 FROM DUAL; SYSDATE SYSDATE+1 SYSDATE+1 SYSDATE+1 ...
DISPLAY THE ENAME,SAL,12*SAL FROM EMP ORDER BY 12*SAL
SELECT ENAME, SAL*12 ANNUAL_SAL FROM EMP ORDER BY ANNUAL_SAL; OR SELECT ENAME, SAL*12 ANNUAL_SAL FROM EMP ORDER BY SAL*12; OR SEL...
DISPLAY THOSE EMPLOYEES NAME START WITH S AND 2ND CHAR IS _
SQL> SELECT * FROM EMP WHERE ENAME LIKE S\_% ESCAPE \; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO 7566 S_HWA...
What is transactional Data?
What ever the data gets generated from day to day activitiescalled as transactions data, it is frequently gets generated through web appl...
What is the difference between BI and VI?
BI stands for business intelligence, any summered report that contains data and displayed in the form of numbers and characters in a 2 dim...
About Me
Contact me
venkatesh amruthapudi
Follow
37
Sign In
Name
Message *
Send
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
41/42
2/17/2016
<marquee>odioracledataintegrator</marquee>
http://odioracledataintegrator.blogspot.in/search?updatedmin=20160101T00:00:0008:00&updatedmax=20170101T00:00:0008:00&maxresults=50
42/42