Connecting to an Oracle View
Hi,
The Oracle DB has a view and I'm trying to connect a DataGrid to it. Can anyone get me a sample for doing this through code? I've worked on calling stored procs but not really sure on a view.
Any help appreciated.
Thanks !
Hi,
Since you;re not very specific about your requirement, then try this as a start. This sample code is an ASP.NET using ODAC 11g which connect to Oracle XE database, and then display Employees table. Just change the table name to your view name.
protected void Page_Load(object sender, EventArgs e)
string cnstr = "Data Source=//localhost/xe;User ID=hr;Password=hr";
string sqlstr = "select * from employees";
DataSet ds = new DataSet();
// retrieve data
using (OracleDataAdapter da = new OracleDataAdapter(sqlstr, cnstr))
da.Fill(ds, "employees");
// bind to datagrid
GridView1.DataSource = ds.Tables["employees"];
GridView1.DataBind();
}Cheers,
Nur Hidayat
Similar Messages
-
How to view current connections to an Oracle database?
Howdy all.
Can/Will anybody tell me how to view the current connections to an Oracle database? I would like to be able to see what connections are happening, what username the connection is under, what the hostname is (the machine the connection is coming from), and also what SQL or PL/SQL is currenlty being executed (if any).
wallyselect username,osuser,sql_address,sql_hash_value,logon_time,machine,terminal,program from v$session;
1 select sql_text,piece from v$sqltext sq, v$session se
2 where sq.hash_value = se.sql_hash_value
3 and sq.address = se.sql_address
4 and se.username = 'SCOTT'
5* order by piece
SQL> /
SQL_TEXT PIECE
select dummy from dual 0 -
Rebuilding of the InforSource of DBCONNECT to Oracle View
Hello,
following problem:
I use DB connect to an Oracle Database to an View
It works fine.
I change the View in the Oracle Database and recompile it.
I get an Error while loading with an InfoPackage.
I have to drop the regenerate the Datasource and
I must Drop ! the InfoSource and
rebuild it completly again to be able to load again !
This stemms due to the fact that BW seems to protocol the internal state of the Oracle View, like displayed in the Oracle Dictionnary views user_views, all_views
or dba_views.
This is an inacceptable BW system behaviour and impossible for day to day
business, development and much work, espescially if You develop a 12 or more
DBConnect View interfaces !
Does anybody out there know how to make BW a more pleasent thing , customize it better to avoid this burden ?
Thank You !
Martin Sautter, Munich / Essen> Hi,
>
> when changing the view in Oracle it isn't necessary
> to drop and recreate the ISource and DSource!!
>
> Proceed as follows:
> - change your view (of course you can't rename it!)
> - regenerate your datasource with tcode RSDBC
> - open your TRules and maintain your TStructure
> (change tab)
> - maintain your TRules
> - finally activate
>
> this is definitively enough.
>
> hope this helps...
>
> Olivier.
>
> Message was edited by:
> Olivier Cora
> Hi,
>
> when changing the view in Oracle it isn't necessary
> to drop and recreate the ISource and DSource!!
>
> Proceed as follows:
> - change your view (of course you can't rename it!)
> - regenerate your datasource with tcode RSDBC
> - open your TRules and maintain your TStructure
> (change tab)
> - maintain your TRules
> - finally activate
>
> this is definitively enough.
>
> hope this helps...
>
> Olivier.
>
> Message was edited by:
> Olivier Cora
> Hi,
>
> when changing the view in Oracle it isn't necessary
> to drop and recreate the ISource and DSource!!
>
> Proceed as follows:
> - change your view (of course you can't rename it!)
> - regenerate your datasource with tcode RSDBC
> - open your TRules and maintain your TStructure
> (change tab)
> - maintain your TRules
> - finally activate
>
> this is definitively enough.
>
> hope this helps...
>
> Olivier.
>
> Message was edited by:
> Olivier Cora
> Hi,
>
> when changing the view in Oracle it isn't necessary
> to drop and recreate the Source and DSource!!
>
> Proceed as follows:
> - change your view (of course you can't rename it!)
> - regenerate your datasource with tcode RSDBC
> - open your TRules and maintain your TStructure
> (change tab)
> - maintain your TRules
> - finally activate
>
> this is definitively enough.
>
> hope this helps...
>
> Olivier.
>
> Message was edited by:
> Olivier Cora
> Hi,
>
> when changing the view in Oracle it isn't necessary
> to drop and recreate the ISource and DSource!!
>
> Proceed as follows:
> - change your view (of course you can't rename it!)
> - regenerate your datasource with tcode RSDBC
> - open your TRules and maintain your TStructure
> (change tab)
> - maintain your TRules
> - finally activate
>
> this is definitively enough.
>
> hope this helps...
>
> Olivier.
>
> Message was edited by:
> Olivier Cora
Hello,
in all its ok, except You change the format ( number to char or char to number etc.) or the column name of DBConnect's View or Table.
In this case You have do delete the BW Datasource and rebuild it.
It is advisable to name the DBConnect View or Table exactly as
in BW. This makes setting up of the InfoSource very easy.
Thank You
Martin Sautter -
Oracle View export/import copy
good morning all,
i have a vpn connection to an oracle database am connecting via oracle client 10g OS is windows.. now i have view with 12 fields now when i query the view the results comes in 12 seperate lines..
field1
field2
field
field
field
field
field
field
out put of field 1
field1
field2
field
field
field
field
field
field
output of field 2
and so on till field 12
i want to know how can this be in just one line ..
am giving the query
select * from <viewname> where rownum < 5
and i have half million records in this view what is the best way to export this view or to save the view as HTML or in some other file.. i dont have permission to use enterprise manager
thanks in advanceIf the column data is too long then it can't come in one line, if the data string is short (lets say 3-6 chars) then you can try to reduce the column length to fix it in one page. But if you want to make it permanent then you need to modify the columns and reduce the character length. But this could be a problem if the future data will have more characters.
What I suggest is to retrieve the required columns -
Query to find dependency of an oracle VIEW
Hi,
I'm using oracle 10g database.
DB name is - ORCL
ORCL DB consists two schemas - Schema1 and Schema2
I have one Oracle view called VIEW1 in Schema1.
I need to find whether Schema2 uses VIEW1 in any of the Tables,views or Programs owned by Schema2.
Is there any query available to find this one?
Regards,
KarthikHow about querying the dba_dependencies view?
SQL> conn / as sysdba
Connected.
SQL> conn aman/aman
Connected.
SQL> create table t as select * from scott.dept;
Table created.
SQL> create view v1 as select * from t;
View created.
SQL> grant select on v1 to scott;
Grant succeeded.
SQL> conn scott/tiger
Connected.
SQL> create view v_dependant as select * from aman.v1;
View created.
SQL> conn / as sysdba
Connected.
SQL> desc dba_dependencies
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
NAME NOT NULL VARCHAR2(30)
TYPE VARCHAR2(18)
REFERENCED_OWNER VARCHAR2(30)
REFERENCED_NAME VARCHAR2(64)
REFERENCED_TYPE VARCHAR2(18)
REFERENCED_LINK_NAME VARCHAR2(128)
DEPENDENCY_TYPE VARCHAR2(4)
SQL> select owner, name , type from dba_dependencies where name='V1' and owner='AMAN';
OWNER NAME TYPE
AMAN V1 VIEW
SQL> select owner, name , type, REFERENCED_OWNER, REFERENCED_NAME from dba_dependencies where name='V1' and owner='AMAN';
OWNER NAME TYPE
REFERENCED_OWNER
REFERENCED_NAME
AMAN V1 VIEW
AMAN
THTH
Aman.... -
Connecting to an oracle database questions
<p>Our current solution to connecting to our oracle database uses the following code:</p><p> ReportClientDocument clientDoc = new ReportClientDocument;</p><p> java.sql.ResultSet rs = fetchResultSet(driverName, connectStr, userName, password, <u>query</u>);</p><p> clientDoc.getDatabaseController().setDataSource(rs, <u>tableName</u>,tableName+"_ResultSet"); </p><p>The code for subreports is very similar, but isn't necessary for my question. The problem w/ this approach is we have to define the SQL query and the table name in the JSP, which we shouldn't have to do considering both of these are stored in the report. Any changes to the reports' sql would then require someone to edit the jsp, which is just bad. </p><p>I have been reading up on the ConnectionInfo and ConnectionInfos classes (nice naming convention btw) and the CrystalReportViewer.setDataBaseLogonInfos() method, and I believe a solution may lie here. The problem is the tutorials on using the ConnectionInfo class assume the database name is stored in the report, and we do not want to assume this. We are developing our reports to be used by our customers, who may name their database whatever they want so long as the tables inside it are what we specify. Because of this assumption, I have yet to find a good explanation of how to use the setAttributes(PropertyBag) method which is the only I have seen to specify the database name (within a connection string). I have examples of it, but nothing that defines the key/value pairs required in the PropertyBag to create a connection to an oracle database. </p><p>Is there some documentation on the key/value pairs needed by the PropertyBag? Also, if there is another (easier) solution I am overlooking then please let me know, thanks.</p><p>-Sam Morehouse</p><p>HBF Group, Inc </p><p> </p>
<p>got it working, here's some sample code. </p><p> </p><p><%<br /> try{<br /> ReportClientDocument clientDoc = new ReportClientDocument();<br /> clientDoc.open(reportName, 0);<br /> <br /> ConnectionInfos connInfos = new ConnectionInfos();<br /> IConnectionInfo iConnInfo = new ConnectionInfo();<br /><br /> PropertyBag bag = new PropertyBag();<br /> bag.put("Database Class Name",driverName); // "oracle.jdbc.driver.OracleDriver"<br /> bag.put("Connection URL",connectStr); // "jdbc:oracle:thin:@dbName:1521:sid"<br /> <br /> PropertyBag pb = new PropertyBag();<br /> pb.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES ,bag);<br /> pb.put(PropertyBagHelper.CONNINFO_DATABASE_DLL ,"crdb_jdbc.dll");<br /> iConnInfo.setAttributes(bag);<br /> <br /> iConnInfo.setUserName(userName);<br /> iConnInfo.setPassword(password); <br /> <br /> iConnInfo.setAttributes(pb);<br /> <br /> connInfos.add(iConnInfo);<br /> session.setAttribute(reportName, clientDoc);<br /> session.setAttribute("reportSource", clientDoc.getReportSource());<br /><br /> //Setup viewer. Only going to include the relevant line, the rest can be found</p><p> //elsewhere.<br /></p><p> CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer(); oCrystalReportViewer.setDatabaseLogonInfos(connInfos); } </p><p>catch(ReportSDKExceptionBase exc)%></p>
-
Connect to an Oracle database by using oracle.jdbc.OracleDriver: error
Hi,
I'm trying to connect to an Oracle database so we can retrieve notes of tables, views and packages.
By using the API of Data Modeler (transformation script) we want to add these notes to corresponding objects in Data Modeler.
I'm starting with this:
importPackage(java.lang);
importPackage(java.awt);
importPackage(java.sql);
java.lang.Class.forName("oracle.jdbc.OracleDriver");
An error occurs when I run this code:
It has to be a Java thing...
Anyone a suggestion?Problem solved! One of my colleagues referred to this post: Import user defined properties from Oracle Designer
More in detail: it's about this couple of lines:
// Copy the ojdbc6.jar file to ..\datamodeler-home\jlib directory
// Add this line to datamodeler.conf
// AddJavaLibFile ../../jlib/ojdbc6.jar
I changed my datamodeler.conf file, restarted DM and now there's no longer an error when I am trying to use the Oracle JDBC drive. -
Business components based on Oracle views
I am trying to create business component objects in a master-detail relationship based on Oracle views rather than on the underlying tables. The wizard does not create associations or links since the views have no foreign keys. I created the associations and links myself, but I am unable to add them to the data model. I am using the beta v5.0, but I had the same problem in v3.23. Can anyone help?
Thanx in advance
nullHere are the steps I just tried with JDevi 9i Beta:
[list]
[*]SQLPLUS SCOTT/TIGER
[*]CREATE VIEW DEPT_VIEW AS SELECT * FROM DEPT;
[*]CREATE VIEW EMP_VIEW AS SELECT * FROM EMP
[*]On my workspace: Right-mouse / New / Empty Project
[*]On my new project: Right-mouse / New Business Components...
[*]Next, to the connection panel
[*]Set the connection, and next
[*]Pick a package name and next
[*]Tick the [x] Views checkbox, and select EMP_VIEW and DEPT_VIEW
[*]Uncheck the "View Objects and View Links" box, since we don't want these created automatically.
[*]Click (Finish)
[*]In navigator, select my "DeptView" entity and edit it (the view is called "DeptViewView").
[*]Click on the "Attributes" tab
[*]Select "Rowid" in the attribute list
[*]Click the (Remove) button
[*]Select the "Attribute Settings" tab, and select the "Deptno" attribute.
[*]Check the [x] Primary Key checkbox for "Deptno"
[*]Click (Ok).
[*]Repeat steps above on "EmpView" entity to remove Rowid attribute and make "Empno" attribute the primary key. (NOTE: Since views don't have constraints, we couldn't detect the primary key constraint, so we default the ROWID to be the primary key in the wizard).
[*]In navigator, select my "DeptView" entity, and right-mouse / New Association...
[*]Using the wizard I create a association based on the "Deptno" attribute, and with a 1 to many cardinality.
[*]I right-mouse on "DeptView" entity and select New Default View Object... to create the "DeptViewView" view object.
[*]I right-mouse on "EmpView" entity and select New Default View Object... to create the "EmpViewView" view object.
[*]I right-mouse on the DeptViewView view object and select New View Link...
[*]I create a new view link between DeptViewView and EmpViewView
[*]On the "Source Attributes" panel, I select the "Dept2Emp" association I created above, and click the ">" to shuttle it to the selected list.
[*]Click next and notice that by selecting the association, it automatically picked the right attributes for both sides for the view link automatically.
[*]click next, then (Finish)
[*]I right-mouse on my package and select New Application Module...
[*]On the datamodel panel, I see a tree view of "Available View Objects like this:
+ Project 3
|
+---[-] Package3
|
+---[SQL] DeptViewView
| |
| +--[SQL] EmpViewView via MyViewLink
|
+---[SQL] EmpViewView[*]I select DeptViewView in the available list and click ">" to shuttle it to the selected list in my data model
[*]In the SELECTED list, I select the DeptViewView that I just added, to make it the current view in the selected list.
[*]Back in the available list, I select the "EmpViewView via MyViewLink" and shuttled it to the selected list as a detail of the current view in the selected list.
[*]I click finish
[*]I right-mouse on my AppModule and select "Test..." to build and test my appmodule.
[*]I click (Connect) on the tester start page
[*]In the tester, I right mouse on "MyViewLink" and select "Show".
[list]
After these steps, I see data correctly.
null -
I noticed my List page displays stale data after Updates if my list select is based on an Oracle View object, whereas if I change the select to go directly at the Table then the list is accurate. For example, say I drill-down on record 1 in the list and then edit the Description...next I Save the edit and the UI returns to the List page. But, the List page still shows the "old" Description. If I drill-down again, I see the "updated" Description (or if I connect to the db using another client I have verified the update was indeed successful).
So, why would using an Oracle View have this negative behavior and is there a way to correct this...since using Views are considered a Best Practice. Here's the query:
<cfquery datasource="BIDW_QDM" name="listDS">select * from v_opn_incdt_tckt_jh363x</cfquery><cfquery
dbtype="query" name="listQ">select * from listDS</cfquery>
<cfoutput
query="listQ">
Thanks,
JThanks, I found the problem...it was a pilot error. The View was NOT pointed to the same table as the update . Could you please have a peek at my other question logged the same day as this one?
-
Hi,
Disp+work.exe has been stopped so iam not able to log in.I run the command R3trans -d then i get the
2EETW169 no connect possible: "DBMS=ORACLE ---dbs_ora_tnsname='VMD'" the this message. i stopped the SAP through MMC and stopped DB also and i tried so many times it is not working .
Please advice.
Regards,
AsifHi,
Listner is in running status only.
trc file: "dev_ms", trc level: 1, release: "700"
[Thr 2840] Thu Jun 11 11:39:11 2009
[Thr 2840] MsSSetTrcLog: trc logging active, max size = 20971520 bytes
systemid 560 (PC with Windows NT)
relno 7000
patchlevel 0
patchno 94
intno 20050900
make: multithreaded, Unicode, optimized
pid 4376
[Thr 2840] Thu Jun 11 11:39:12 2009
[Thr 2840] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 4376) [msxxserv.c 1824]
[Thr 2840] Thu Jun 11 11:39:13 2009
[Thr 2840] load acl file = E:\usr\sap\VMD\SYS\global\ms_acl_info.DAT
[Thr 2840] MsGetOwnIpAddr: my host addresses are :
[Thr 2840] 1 : [10.10.3.155] blrsap002.vmoksha.com (HOSTNAME)
[Thr 2840] 2 : [127.0.0.1] blrsap002.vmoksha.com (LOCALHOST)
[Thr 2840] MsHttpInit: full qualified hostname = blrsap002.vmoksha.com
[Thr 2840] Thu Jun 11 11:39:14 2009
[Thr 2840] HTTP logging is switch off
[Thr 2840] set HTTP state to LISTEN
[Thr 2840] MsHttpOwnDomain: own domain[1] = vmoksha.com
[Thr 2840] ms/icf_info_server : deleted
[Thr 2840] *** I listen to port sapmsVMD (3600) ***
[Thr 2840] *** I listen to internal port 3900 (3900) ***
[Thr 2840] *** HTTP port 8100 state LISTEN ***
[Thr 2840] CUSTOMER KEY: >G1790336528<
[Thr 2840] Thu Jun 11 11:40:42 2009
[Thr 2840] *** ERROR => MsSClientHandle: no server provides service ENQ (4), requested from blrsap002_VMD_00 [msxxserv.c 4679]
[Thr 2840] Thu Jun 11 11:51:03 2009
[Thr 2840] *** ERROR => MsSCheckConnections: no response from client C0 (10.10.3.155) after 300 secs received [msxxserv.c 3165]
[Thr 2840] *** ERROR => MsSCheckConnections: disconnect now [10.10.3.155] [msxxserv.c 3169]
trc file: "dev_w0", trc level: 1, release: "700"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, MJ
B
B Thu Jun 11 11:39:34 2009
B create_con (con_name=R/3)
B Loading DB library 'E:\usr\sap\VMD\DVEBMGS00\exe\dboraslib.dll' ...
B Library 'E:\usr\sap\VMD\DVEBMGS00\exe\dboraslib.dll' loaded
B Version of 'E:\usr\sap\VMD\DVEBMGS00\exe\dboraslib.dll' is "700.08", patchlevel (0.92)
B New connection 0 created
M sysno 00
M sid VMD
M systemid 560 (PC with Windows NT)
M relno 7000
M patchlevel 0
M patchno 95
M intno 20050900
M make: multithreaded, Unicode, optimized
M pid 12948
M
M kernel runs with dp version 224000(ext=109000) (@(#) DPLIB-INT-VERSION-224000-UC)
M length of sys_adm_ext is 572 bytes
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 12948) [dpxxdisp.c 1301]
I MtxInit: 30000 0 0
M DpSysAdmExtCreate: ABAP is active
M DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
M DpShMCreate: sizeof(wp_adm) 18616 (1432)
M DpShMCreate: sizeof(tm_adm) 4232256 (21056)
M DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
M DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
M DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
M DpShMCreate: sizeof(comm_adm) 528064 (1048)
M DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
M DpShMCreate: sizeof(slock_adm) 0 (96)
M DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
M DpShMCreate: sizeof(file_adm) 0 (72)
M DpShMCreate: sizeof(vmc_adm) 0 (1520)
M DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
M DpShMCreate: sizeof(gw_adm) 48
M DpShMCreate: SHM_DP_ADM_KEY (addr: 06060040, size: 4891728)
M DpShMCreate: allocated sys_adm at 06060040
M DpShMCreate: allocated wp_adm at 06061E80
M DpShMCreate: allocated tm_adm_list at 06066738
M DpShMCreate: allocated tm_adm at 06066768
M DpShMCreate: allocated wp_ca_adm at 0646FBA8
M DpShMCreate: allocated appc_ca_adm at 06475968
M DpShMCreate: allocated comm_adm at 064778A8
M DpShMCreate: system runs without slock table
M DpShMCreate: system runs without file table
M DpShMCreate: allocated vmc_adm_list at 064F8768
M DpShMCreate: allocated gw_adm at 064F87A8
M DpShMCreate: system runs without vmc_adm
M DpShMCreate: allocated ca_info at 064F87D8
M DpShMCreate: allocated wall_adm at 064F87E0
X EmInit: MmSetImplementation( 2 ).
X MM global diagnostic options set: 0
X <ES> client 0 initializing ....
X Using implementation view
M <EsNT> Memory Reset disabled as NT default
X ES initialized.
M
M Thu Jun 11 11:39:35 2009
M ThInit: running on host blrsap002
M
M Thu Jun 11 11:39:36 2009
M calling db_connect ...
C Prepending E:\usr\sap\VMD\DVEBMGS00\exe to Path.
C Oracle Client Version: '10.2.0.1.0'
C Client NLS settings: AMERICAN_AMERICA.UTF8
C Logon as OPS$-user to get SAPSR3's password
C Connecting as /@VMD on connection 0 (nls_hdl 0) ... (dbsl 700 030107)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 UTF8 1 05D09338 05D0E8D4 05D0E15C
C Attaching to DB Server VMD (con_hdl=0,svchp=05D0E0A8,srvhp=05D1F974)
C
C Thu Jun 11 11:39:37 2009
C Starting user session (con_hdl=0,svchp=05D0E0A8,srvhp=05D1F974,usrhp=0AAE1B48)
C *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1034
[dboci.c 4500]
C Detaching from DB Server (con_hdl=0,svchp=05D0E0A8,srvhp=05D1F974)
C *** ERROR => CONNECT failed with sql error '1034'
[dbsloci.c 10948]
C Try to connect with default password
C Connecting as SAPSR3/<pwd>@VMD on connection 0 (nls_hdl 0) ... (dbsl 700 030107)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 UTF8 1 05D09338 05D0E8D4 05D0E15C
C Attaching to DB Server VMD (con_hdl=0,svchp=05D0E0A8,srvhp=05D1F974)
C Starting user session (con_hdl=0,svchp=05D0E0A8,srvhp=05D1F974,usrhp=0AAE1B48)
C *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1034
[dboci.c 4500]
C Detaching from DB Server (con_hdl=0,svchp=05D0E0A8,srvhp=05D1F974)
C *** ERROR => CONNECT failed with sql error '1034'
[dbsloci.c 10948]
B ***LOG BV3=> severe db error 1034 ; work process is stopped [dbsh#2 @ 1199] [dbsh 1199 ]
B ***LOG BY2=> sql error 1034 performing CON [dblink#3 @ 431] [dblink 0431 ]
B ***LOG BY0=> ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist [dblink#3 @ 431] [dblink 0431 ]
M ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c 1426]
M in_ThErrHandle: 1
M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 10240]
M
M Info for wp 0
M
M stat = WP_RUN
M waiting_for = NO_WAITING
M reqtype = DP_RQ_DIAWP
M act_reqtype = NO_REQTYPE
M rq_info = 0
M tid = -1
M mode = 255
M len = -1
M rq_id = 65535
M rq_source =
M last_tid = 0
M last_mode = 0
M semaphore = 0
M act_cs_count = 0
M csTrack = 0
M csTrackRwExcl = 0
M csTrackRwShrd = 0
M control_flag = 0
M int_checked_resource(RFC) = 0
M ext_checked_resource(RFC) = 0
M int_checked_resource(HTTP) = 0
M ext_checked_resource(HTTP) = 0
M report = > <
M action = 0
M tab_name = > <
M vm = no VM
M
M *****************************************************************************
M *
M * LOCATION SAP-Server blrsap002_VMD_00 on host blrsap002 (wp 0)
M * ERROR ThInit: db_connect
M *
M * TIME Thu Jun 11 11:39:37 2009
M * RELEASE 700
M * COMPONENT Taskhandler
M * VERSION 1
M * RC 13
M * MODULE thxxhead.c
M * LINE 10439
M * COUNTER 1
M *
M *****************************************************************************
M
M PfStatDisconnect: disconnect statistics
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 720]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 260]
M Entering ThSetStatError
M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
M Entering ThReadDetachMode
M call ThrShutDown (1)...
M
M Thu Jun 11 11:39:38 2009
M ***LOG Q02=> wp_halt, WPStop (Workproc 0 12948) [dpnttool.c 327] -
Need to connect to upgraded Oracle EBS R12 version from R11. The current ODI set up is pointing to R11, Can i use the same connection to point to R12? Please hele experts...
Rp1. in physical connections part can i use the same work schema
2. Can i use same contexts created or do i need to create everything as new and then try?
Thanks,
Rp.
Hi,
As you mentioned that you just upgraded the database, so the data is same and schema is same you can connect with the same work schema.
Yes, you can use the same contexts , but need to do Reverse Engineering for your new database.
And about data server, i think you also have no need to create new data server, if hostname,sid and port etc are same as these were with R11(consult with your DBAs regarding it) -
How can i connect asp to oracle db
how can i connect asp to oracle db
when i go to odbc to make dsn the message say " the oracle(tm) client and networking components were not found thes components are supplied by oracle corporation and are part of the oracle version7.3 or greater client software installation
you will be unable to use this driver until thess components have been installed "
where can i get oracle(tm) and how can what is all steps to make asp connect to oracle db
thanks for you .Probably best to ask the Windows specific lists that best fits your problem:
ODBC: http://forums.oracle.com/forums/forum.jsp?id=763957
.NET Data Provider: http://forums.oracle.com/forums/forum.jsp?id=1015160
Oracle Objects for OLE: http://forums.oracle.com/forums/forum.jsp?id=763961
Oracle Objects for OLE and Wizards: http://forums.oracle.com/forums/forum.jsp?id=763961
Mike. -
Connecting to an Oracle database after clicking on a foi
Does anyone know how or have any examples on how to connect to an oracle database after clicking on a 'feature of interest' in MapViewer? I want to be able to click on a 'feature of interest' on the map, and have a list of records from an oracle table displayed using the identified key of the foi. I am able to create the feature of interest, and add the event listener for 'mouse click', but am unsure how to connect to the database at this point. I have been able to connect to the database in a different jsp, but not from here. Thank you.
1. Create a JSP page that does the database query. It should take the foi id as an input parameter.
2. In the foi mouse click listener, display the JSP page in iframe. The iframe can be placed outside the map or inside the info window. The function should do something like this.
function myClickListener(point, foi)
mapview.displayInfoWindow(point, "<iframe id='my_iframe_id' frameborder=0 width=300px height=400px />", 300, 400) ;
var myIframe = document.getElementById("my_iframe_id") ;
myIframe.src = "http://myhost/myjsp?key=" + foi.id ;
} -
Error in connect to database2EETW169 no connect possible: "DBMS = ORACLE
Dear All,
I am facing probem in sarting the sap after system copy.
Database is up and running .Please find the logs
There error it can connect to database
r3trans log
This is r3trans version 6.09 (release 640 - 26.10.04 - 15:45:42).
unicode enabled version
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_o
ra_tnsname = 'TAT'"
r3trans finished (0012).
trc file: "dev_disp", trc level: 1, release: "640"
Wed Jul 22 20:03:18 2009
kernel runs with dp version 128000(ext=102000) (@(#) DPLIB-INT-VERSION-128000-UC)
length of sys_adm_ext is 524 bytes
systemid 560 (PC with Windows NT)
relno 6400
patchlevel 0
patchno 43
intno 20020600
make: multithreaded, Unicode
pid 552
***LOG Q00=> DpSapEnvInit, DPStart (00 552) [dpxxdisp.c 1100]
shared lib "dw_xml.dll" version 43 successfully loaded
shared lib "dw_xtc.dll" version 43 successfully loaded
shared lib "dw_stl.dll" version 43 successfully loaded
shared lib "dw_gui.dll" version 43 successfully loaded
Wed Jul 22 20:03:23 2009
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3886]
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: JAVA is not active
DpShMCreate: sizeof(wp_adm) 10528 (1316)
DpShMCreate: sizeof(tm_adm) 2780232 (13832)
DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
DpShMCreate: sizeof(comm_adm) 290000 (580)
DpShMCreate: sizeof(vmc_adm) 0 (372)
DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
DpShMCreate: SHM_DP_ADM_KEY (addr: 04540040, size: 3192688)
DpShMCreate: allocated sys_adm at 04540040
DpShMCreate: allocated wp_adm at 04541B58
DpShMCreate: allocated tm_adm_list at 04544478
DpShMCreate: allocated tm_adm at 045444A0
DpShMCreate: allocated wp_ca_adm at 047EB0E8
DpShMCreate: allocated appc_ca_adm at 047F0EA8
DpShMCreate: allocated comm_adm_list at 047F2DE8
DpShMCreate: allocated comm_adm at 047F2E00
DpShMCreate: allocated vmc_adm_list at 04839AD0
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 04839AF8
DpShMCreate: allocated wall_adm at 04839B00
MBUF state OFF
EmInit: MmSetImplementation( 2 ).
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation flat
<EsNT> Memory Reset disabled as NT default
<ES> 2456 blocks reserved for free list.
ES initialized.
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG CPS=> DpLoopInit, ICU ( 2.6.1 2.6 4.0) [dpxxdisp.c 1462]
***LOG Q0K=> DpMsAttach, mscon ( RFCLTEST) [dpxxdisp.c 9736]
Wed Jul 22 20:03:24 2009
CCMS: Initalizing shared memory of size 60000000 for monitoring segment.
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 6400, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
DpMsgAdmin: Set patchno for this platform to 43
Release check o.K.
Wed Jul 22 20:04:04 2009
ERROR => W0 (pid 2956) died [dpxxdisp.c 12187]
ERROR => W1 (pid 2080) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W2 (pid 3556) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W3 (pid 2604) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W4 (pid 4024) died [dpxxdisp.c 12187]
ERROR => W5 (pid 3816) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W6 (pid 2820) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W7 (pid 1448) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
killing W0-2956 (SIGUSR2)
ERROR => DpWpKill(2956, SIGUSR2) failed [dpxxtool.c 2468]
killing W1-2080 (SIGUSR2)
ERROR => DpWpKill(2080, SIGUSR2) failed [dpxxtool.c 2468]
killing W2-3556 (SIGUSR2)
ERROR => DpWpKill(3556, SIGUSR2) failed [dpxxtool.c 2468]
killing W3-2604 (SIGUSR2)
ERROR => DpWpKill(2604, SIGUSR2) failed [dpxxtool.c 2468]
killing W4-4024 (SIGUSR2)
ERROR => DpWpKill(4024, SIGUSR2) failed [dpxxtool.c 2468]
killing W5-3816 (SIGUSR2)
ERROR => DpWpKill(3816, SIGUSR2) failed [dpxxtool.c 2468]
killing W6-2820 (SIGUSR2)
ERROR => DpWpKill(2820, SIGUSR2) failed [dpxxtool.c 2468]
killing W7-1448 (SIGUSR2)
ERROR => DpWpKill(1448, SIGUSR2) failed [dpxxtool.c 2468]
NiWait: sleep (10000 msecs) ...
NiISelect: timeout 10000 ms
NiISelect: maximum fd=1597
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Wed Jul 22 20:04:14 2009
NiISelect: TIMEOUT occured (10000 ms)
dump system status
Workprocess Table (long) Wed Jul 22 14:34:14 2009
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 2956 Ended no 1 0 0
1 DIA 2080 Ended no 1 0 0
2 UPD 3556 Ended no 1 0 0
3 ENQ 2604 Ended no 1 0 0
4 BTC 4024 Ended no 1 0 0
5 BTC 3816 Ended no 1 0 0
6 SPO 2820 Ended no 1 0 0
7 UP2 1448 Ended no 1 0 0
Dispatcher Queue Statistics Wed Jul 22 14:34:14 2009
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
3
2000
10
10
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
0
0
2000
0
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 13
wake_evt_udp_now 0
wake events total 9, udp 8 ( 88%), shm 1 ( 11%)
since last update total 9, udp 8 ( 88%), shm 1 ( 11%)
Dump of tm_adm structure: Wed Jul 22 14:34:14 2009
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Wed Jul 22 14:34:14 2009
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000 msecs) ...
NiISelect: timeout 5000 ms
NiISelect: maximum fd=1597
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Wed Jul 22 20:04:19 2009
NiISelect: TIMEOUT occured (5000 ms)
Shutdown server ...
DpJ2eeDisableRestart
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes...
Stop gateway
killing process (2004) (SOFT_KILL)
Stop icman
killing process (932) (SOFT_KILL)
Terminate gui connections
[DpProcDied] Process lives (PID:2004 HANDLE:1576)
waiting for termination of gateway
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=1597
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Wed Jul 22 20:04:20 2009
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process died (PID:2004 HANDLE:1576)
[DpProcDied] Process died (PID:932 HANDLE:1568)
DpHalt: cancel all lcom connections
MPI CancelAll 2 -> 0
MPI DeleteAll 2 -> 0
NiIMyHostName: hostname = 'RFCLTEST'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 163 bytes
NiBufSend starting
NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 9962]
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiSelClear: removed hdl 3 from selectset
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
MBUF component DOWN
NiBufClose: clear extensions for hdl 3
NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
NiICloseHandle: shutdown and close hdl 3 / socket 1580
MsIDetach: detach MS-system
EsCleanup ....
***LOG Q05=> DpHalt, DPStop ( 552) [dpxxdisp.c 8495]
Good Bye .....
Regards,Hi,
Yes it is running and in r3trans log error
[dboci.c ,00000] *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
4 ETW000 4210 0.068739
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017'
4 ETW000 27 0.068766
4 ETW000 [dev trc ,00000] Try to connect with default password 155 0.068921
4 ETW000 [dev trc ,00000] Connecting as SAPTST/<pwd>@TST on connection 0 ...
4 ETW000 23 0.068944
4 ETW000 [dev trc ,00000] Assigning username to user session 01DF23E0 16 0.068960
4 ETW000 [dev trc ,00000] Assigning password to user session 01DF23E0 24 0.068984
4 ETW000 [dev trc ,00000] Starting user session (con_hdl=0,svchp=01DE8C0C,srvhp=01DE9814,usrhp=01DF23E0)
4 ETW000 27 0.069011
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
4 ETW000 1521 0.070532
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017'
4 ETW000 24 0.070556
4 ETW000 [dblink ,00419] ***LOG BY2=>sql error 1017 performing CON [dblink#1 @ 419]
4 ETW000 4668 0.075224
4 ETW000 [dblink ,00419] **LOG BY0=>ORA-01017: invalid username/password; logon denie*d [dblink#1 @ 419]
4 ETW000 25 0.075249
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'TST'"
REgards, -
ORA-02070: Error when updating a SQL Server table thru an Oracle View
I have a SQL Server table TIMESHEET which contains a number of VARCHAR and NUMERIC columns plus a DATETIME column.
Only the DATETIME column is giving me trouble.
On the ORACLE side I have a view which selects from the SQL Server table but in order to get the SELECT to work, I had to either put a CAST or TO_DATE function call around the DATETIME field
Below is the relevant part of the 2 view definitions I have tried
create view TIMESHEET as
SELECT
"TsKeySeq" as TS_KEY_SEQ,
"EmployeeNo" as EMPLOYEE_NO,
CAST("PeriodEnding" AS DATE) as PERIOD_ENDING,
. . . (more columns - not relevant)
FROM [email protected];
An update to the view generates this message
ORA-02070: database OLEMSQLPSANTDAS6 does not support CAST in this context
create view TIMESHEET as
SELECT
"TsKeySeq" as TS_KEY_SEQ,
"EmployeeNo" as EMPLOYEE_NO,
TO_DATE("PeriodEnding") as PERIOD_ENDING,
. . . (more columns - not relevant)
FROM [email protected];
An update to the view generates this message
ORA-02070: database OLEMSQLPSANTDAS6 does not support TO_DATE in this context
If I don't include either the TO_DATE() or CAST() then I get
Select Error: ORA-28527: Heterogeneous Services datatype mapping error
ORA-02063:preceding line from OLEMSQLSANTDAS6
Does anyone have any idea how to update a SQL Server DATETIME column thru an ORACLE view?You can't cast accross heterogenious databases and there is no need to. HSODBC treats SQL Server DATETIME column as DATE. For example, I have SQL Server table:
CREATE TABLE [Ops].[T_JobType](
[JobType] [varchar](50) NOT NULL,
[JobDesc] [varchar](200) NULL,
[InsertDt] [datetime] NOT NULL CONSTRAINT [InsertDt_00000006] DEFAULT (getdate()),
[InsertBy] [varchar](128) NOT NULL CONSTRAINT [InsertBy_00000006] DEFAULT (user_name()),
[LastUpdated] [datetime] NOT NULL CONSTRAINT [LastUpdated_00000006] DEFAULT (getdate()),
[LastUpdatedBy] [varchar](128) NOT NULL CONSTRAINT [LastUpdatedBy_00000006] DEFAULT (user_name()),
CONSTRAINT [T_JobType_PK] PRIMARY KEY CLUSTERED
[JobType] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 100) ON [DATA01FG]
) ON [DATA01FG]Now on Oracle side I do:
SQL> desc "Ops"."T_JobType"@pbods
Name Null? Type
JobType NOT NULL VARCHAR2(50)
JobDesc VARCHAR2(200)
InsertDt NOT NULL DATE
InsertBy NOT NULL VARCHAR2(128)
LastUpdated NOT NULL DATE
LastUpdatedBy NOT NULL VARCHAR2(128)
SQL> select "InsertDt" from "Ops"."T_JobType"@pbods;
InsertDt
18-AUG-08
09-OCT-08
22-OCT-09
18-AUG-08
19-NOV-08
SQL> SY.
Maybe you are looking for
-
HT1338 i can't attach my hp color laserjet cp1215 printer.
i can't attach my hp color laserjet cp1215 printer.
-
Can I install a Nvidia GeForce GTX 660 into my HP laptop?
Hi I was wondering if I could possibly install a new graphics card into my HP laptop? My laptop is a HP 15-d051sa 15.6" so you can search it up on Google. My specs: RAM: 8gb HDD: 1TB Processor: Intel(R) Pentium(R) CPU N3510 2Ghz (2mb cache) Graphics:
-
Inserting into Oracle9i DB from Visual Basic
Hi, I have a Visual Basic 6.0 application that queries an Oracle database to insert into a table. In some cases it will insert fine and in others it won't. Am I doing something wrong in the way I query the Oracle database? I don't get any errors, it
-
I would like to create a function that would time & date stamp my form at the time it's being sent. I have a button designed to e-mail the PDF to a specific e-mail inbox. Is there a way to time & date stamp this form at the time the individual pres
-
What phone support do you get with an Exchange License
Hi. I support 2 2013 exchange server. Licenses where recently bought and I need to get support for a few issues that need to be fixed. Can anyone tell me if a license grants you phone support? If so, what details do I need? Thanks