Data base Access
Hi
I am developing a PDK (java) application
From my application i need to get data from .Net system
What are all the possible ways to access data from .Net System
Thanks
Rudra
When you say .NET System what do you mean? Is that an MS SQL Server, a Sharepoint portal, other .NET system....?
There are many ways to access database.
In my opinion the most recommended one is using EJB or Hibernate because that gives you real MVC seperation, but it will be a bit difficult to implement in a PDK application.
The quickest way will be using JDBC: Either configure the connection on the app server and access it's alias using the Initial context object or create the JDBC connection in your code but I highly recommend configuring it on the app server.
Once configured, you can use something like that to access the object:
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup(<YOUR_ALIAS>);
Connection conn = ds.getConnbection();
Hope it helps,
Roy
Similar Messages
-
Hello all,
I have following scenario:
1) I have one select query which is fetching 5,000 records from data base in single select.
2)Two select query from the same table fetching 1,000 records each time.
I want to know that which option will take more time that is 1 will take more time or 2.
Thanks and regards
SachinHi Sachin,
The second selection query will take more time beacuse it has to hit the data base 2 times and also increases traffic on database server hence it takes more time .
and second selection query may take 4 to 5 times of first selection query.
Regards
Babumiya Mohammad. -
Dear All,
Is it possible to make the BSP application to communicate with other DataBases like SQL , Oracle?
Kind Regards,
MukeshHi,
As long as you can do it using ABAP !
You can use transaction DBCO for this.
Here are some helpful links
/people/sap.user72/blog/2006/08/31/configure-dbco-database-multiconnect-on-ibm-i5iseries
http://help.sap.com/saphelp_nw70/helpdata/EN/df/455ec9747111d6b25100508b6b8a93/frameset.htm
Best regards,
Guillaume -
What is logical data base and how it is differfrom DDIC AND DATABASE
HI ,
CAN ANY BODY HELP ME TO FIND THISHi
A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
<b>Reward points for useful Answers</b>
Regards
Anji -
hi experts!!
i am working on the LDb report and i have created a LDB zaxxx in se36 and using the same LDB to code in se38 and in attributes i have mentioned the name of LDB.
when i code follwoing:
GET ZAXXXX FIELDS INVOICE_NUM CUST_NAME CUST_PO_NUM INV_DATE.
ITS GIVING ERROR THAT ZAXXX IS NOT SPECIFIED FOR FIELD SELECTION.
when i use only
GET ZAXXXX . when i debug valuse are comming but when process the report its giving no valuse.
plz suggest me on the same..
maheshhi this may be of some help.
A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Sample code
TABLES: SPFLI,
SFLIGHT,
SBOOK,
SCARR.
START-OF-SELECTION.
GET SPFLI.
WRITE:/ SPFLI: , SPFLI-CARRID, SPFLI-CONNID,
SPFLI-AIRPFROM, SPFLI-AIRPTO.
GET SFLIGHT.
WRITE:/ SFLIGHT: , SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
GET SBOOK.
WRITE:/ SBOOK: , SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
GET SFLIGHT LATE.
WRITE:/ GET SFLIGHT LATE: , SFLIGHT-FLDATE.
with regards,
Hema SUndara.
pls reward if helpful. -
Discovere acess problem in data base 10g
create user for discovere Data base access for one user.Now he is facing log in problem it shows
A connection error has occurred.
- Failed to connect to database - ORA-12154: TNS:could not resolve the connect identifier specified
can anybody please help me.
Thanks,
Dave1.On client machine intall discoverer desktop
2.copy the tnsname.ora file in %BI_HOME%/network/admin Directory
3.copy the applicaitons .dbc file in %BI_HOME%/discoverer/secure directory. If the directory doesn't exist then create it.
4.Create an evironment parameter FND_SECURE with value pointing to the %BI_HOME%/discoverer/secure path.
5.In discoverer desktop change connection options to Oracle applciations and then provide username/password/sid and check the Oracle applications checkbox and connect to database.
Sami Malik
[email protected] -
How i can import MS access Data base in Oracle 9i
Dear ALL,
i am feacing problem in import data base from MS ACCESS to Oracle 9i the procedure was very simple in oracle 8.0.5 but dont know what is in Oracle 9i pls i am in big tribble just boz of this problem pls tell me the solution of this prob with brief Steps would be very thank full to you
Nauman MirzaNaumann,
Have you checked out the Oracle Migration Workbench? You will find a lot of infromation about it here on OTN.
Donal -
Itunes 6 does not access the cddb gracenote data base any more
i have installed norton products, but changing the setting does not affect the status, i could not successfully update to itunes 6+ and the girl from apple said it has no major upgrade in it, but my grace note data base does not work any more, i get a yellow triangle and problem with http and stuff, so i changed to winamp for filing my music, though i believe, sound wise, itunes might be slightly better, but winamp is consumer friendly and whiskey bernstein in my case, the "momo" time thief gray of itunes is not a turn on, so does any one know what can happen to the cddb data access ? merci, henri
Shaun Bromley wrote:
Well it's the way I've always done, and as far as I know it's the way it's supposed to be done.
It's can be done this way but it doesn't mean it is supposed to be done this way.
There are no duplicate items.
If you want to listen to a song on your iPhone and also on your iPod, you have to have a copy in each library.
You just tick sync all songs in each library then tick/untick each song as necessary for each library.
I never uncheck anything.
I just add/delete from a playlist and sync.
How the **** do we now know which library we are in???
You know which **** library you are in because it is the one you **** well opened.
If you only use one library, there is no wondering which library you are using.
Any way, good luck! -
How to access two oracle data base with out DB link
Hi,
I have two data base schema
one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.
Thanks,malarkandy wrote:
I have two data base schema
one is held in oracle 10g and the other in 11g ,Currently i am using DB link to access both the database. i am accessing around 70 tables using DB link.
As per new requirement i have to remove DB link ,is there any other way i can access both database with out DB link.Yes. But that needs another network and application interface instead of a database link.
The target database can implement PL/SQL web services. These can be called via HTTP.
The local database can use UTL_HTTP to make a call to the target database's web service for accessing target database data.
Both databases can use AQ (Advance Queues). This can be integrated with an application server's JMS queues.
This enable one database to enqueue a request to the other database, and for that database to respond by sending data.
There are numerous such type of interfaces that can be used. Some primitive. Some advanced. Some simple. Some complex.
The easiest and most flexible mechanism is however a database link. And it does not make sense to disallow database links for security and management reasons, but allow JMS for example. The network infrastructure is the same for both methods. The network protocol is the same. The security issues and concerns are the same - except that JMS for example is significantly more moving parts and make configuration and security a lot more complex than using a database link. -
Access non-Oracle data base from Oracle Data base?
Hi,
I have a system using Oracle data base but i have to query some data in
Access data base called TA_2008.mdb for specific table called FPTrans
My oracle database SID=Ahmed10g my schema is attend/attend.
I have tried to use the Heterogenous Services Generic Connectivity Agents .
I think i have to build the ODBC driver for Access database not for oracle and specify the Access DB name
But i built the driver for oracle.
Please clear the steps for me and correct me if i am wrong .......................
1. Create ODBC driver [microsoft ODBC for Oracle] as File Data Source Name =attendoraclefds
user : attend
password : attend
Server :ahmed10g
2. create intilization Parameter file in the path D:\oracle10gDB\product\10.2.0\db_1\hs\admin
called : initATTENDORACLEFDS.ora
CONTAINS PARAMETERS:
HS_FDS_CONNECT_INFO=FILEDSN=attendoraclefds
HS_FDS_TRACE_LEVEL=ON
3. Edit TNSname.ora file :
attendoraclefds =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = awahaishi_lptp.sepocye.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = attendoraclefds)
(HS = OK)
4. Edit Listener.ora file :
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle10gDB\product\10.2.0\db_1)
(SID_DESC =
(PROGRAM = hsodbc)
(SID_NAME = attendoraclefds)
(ORACLE_HOME = D:\oracle10gDB\product\10.2.0\db_1)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = awahaishi_lptp.sepocye.com)(PORT = 1521))
5. Restart the listener
6. create the data base link:
CREATE DATABASE LINK accessDB
CONNECT TO attend IDENTIFIED BY attend
USING 'attendoraclefds';
select * from EMP_JOBS@accessDB;
Error occures say :
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-28541: Error in HS init file on line 9.
ORA-02063: preceding 2 lines from AAL
Edited by: StillYoung on Mar 18, 2009 1:10 AMPlease see if the following link is helpful:
a question about transparent gateway,sb help me plz!! -
If Apple's data base is accessed by people like this, why can't the same data base be used to track ownership? MOst Apple users sign on to itunes and share their system information. Would it not make sense to share the serial numbers with a reporting system?
If I call into the local Apple store, will I receive any support in locating my systems or will they want to sell me an app to track them?
The data is available for Apple to promote an independent recovery sytem...why don't they? Is there no money in it?
<Edited By Host>why can't the local Apple store access the national data base and find out where it was being serviced.
They can do that now, if the system is at an authorized service center. It's highly unlikely that a stolen system would just happen to have been checked into a service center at the time you happen to look, though. I also doubt that Apple would provide that information to you just on your request.
As to the report you are referencing, is it coinicidence homes with multiple Apple systems were targeted? In my neighborhood, only homes with more than two Imacs were hit...and only Apple systems were taken.
Such information would not be available to any burglar, nor has there been even a rumor that Apple's internal customer databases have every been compromised. So yes, it was either coincidence or the burglars casing the premises, not at all hard to do. It's even often possible by doing a scan of someone's WiFi network; few people have theirs adequately secured.
Apple is not law enforcement. It's not their job to try and track stolen property; that's the job for the police. There's nothing further to be said. -
How to access Oracle Data Base on Unix using Visual Basic ?
Hi !
I want to use visual basic and access the Oracle Data Base on Unix server. How can i do that ? Do i need any software?
.PrashantYou need an oracle client installation and setup your TNS names.
-
ORA-00900 when there is huge quantity access to Data Base
Hi
I have some Java programs which access to the same Data Base Oracle 11gR2 from diferent computers and diferent Operative System.
in a normal execution everything is working but when I want to test the 'stress' in the data base I execute many concurrent programs. The problem is that when I execute too many programs the data base answer me 'java.sql.SQLException: ORA-00900: sentencia SQL no valida' (I´m sorry the spanish expresion, I don´t know the english correspondence)
The SQL sentences are static.
Do you know why? and do you know the solution?
Thanks you for your answers
Pablo José Izquierdohi, thank for your answer
I enable a logging in my Java program and after the execution I write the sql sentence which causes the exception in my SQLplus and it´s correct. The programs execute the same 4 sentences about 50 time every second (more 200 access every second and every program) and it´s only return a problem when I have too many programs.
It´s only happens sometimes, no always, but the execution is very long and I find the problem at some point in the same
The database is Autocommit and the sentences are on the same table but on diferente values. -
Error to Access Data Base on SAP Netweaver 6.40 Sneak Preview SP14
Hi guys,
If someone could help me I'd be very grateful!
I've installed the NW 6.40 Sneak preview SP 19 and it's working well, however I tried to access the Data Base by MaxDB. So I provided the configuration data, such as:
Server: myServer like 192.168.0.12
DataBase: J2E
User: SAPJ2EDB
Password: myPassword
but when I try to connect on it, the system does not allow and display me the following message:
24950 user authorization failed,
I tryed to use the user Custom but it also didn't work! the system display me the following message:
Invalid Session ID!
PS: When I try to access my ConfigTool to change the SAPJ2EDB password the ConfigTool doesn't open and display me this message:
Error occurred while working with Configuration (Scanning).
Msg: Error while connecting to DB.
In my opinion I suppose that I need to apply some note. What do u think about that? I suppose it coz I've installed the WAS and I didn't do anything more!
beforehand, thanks for help!
Cheers!
EduardoHello Eduardo,
1. Could you please check if you could connect to the database using dbmcli tool:
Login as j2eadm user, run the following commands & update with outputs:
dbmcli db_enum
dbmcli u2013d J2E u2013u control,<pwd> db_state
dbmcli u2013d J2E u2013u control,<pwd> user_getall
2. What ist he database version?
Thank you and best regards, Natalia Khlopina -
Problem of security using ADO from Labview to connect to Access 2000 Data Base
I have a problem using ADO from Labview to connect to Access 2000 Data Base.
First I open a ADO_DB_Engine and create a Workspace as an ODBCDirect. After I execute the open_data_base using the workspace. Here you can specify the parameter connect with /type of connection / user / password.
The problem is the following:
Although you configure a password for the Administrator user in Access, you can read/writte to data base from Labview using ADO without any security and without putting the user and password in the parameter connect. I need to access with security to data base using users and permissions but it seems that the parameter connect does not operate.
I attach
you a example of the vis and database. Remember create a ODBC connect with BD3.mdb
Thanks a lot
Peter Mst
Attachments:
SECURITY.zip 70 KB
BD3.mdb 112 KBHi Kahn,
If you use ADODB_connection -> Connection.Open and set in connection string :
"Provider=Microsoft.Jet.OLEDB.4.0; Jet OLEDBystem Database=c:\.....\Protegida5.mdw; Password=pepe;user ID=jose; Data Source:c:\......\BD5.mdb";
and after connection.execute ->
INSERT INTO tabla1 VALUES (5,'XXX'
you will be able to access to the database with security using the provider=Microsoft.Jet.OLEDB.4.0. With this provider you have to use the path and the name of the database file c:\.....\mdb file. From this way the problem is solved. (SEE SAMPLE_ADO_W2_JET.VI).
BD5.mdb have the following administrator user: user:jose / passwordepe (Protegida5.mdw)
The problem is when you want to
use ODBC and DSN. The name of this ODBC Provider is MSDASQL;. If you use this type of connection you can not enter to the database I attach you.
This database has a new administrator owner. I deleted the default administrator. If you support the default administrator you can connect to database by ODBC / DSN but the security disappear because you can always enter to database with any password, user o PC.
FINALLY I HAVE 3 QUESTIONS FOR Application Engineers of National Instruments or someone who knows these subjects before deciding the best way to connect locally o remotely with security to Access from Labview:
1.- Is it possible to enter to Database BD5.mdb from ODBC and DSN with this owner?
2.- I want to connect remotely to Access database too. Is it possible to use Microsoft.Jet.OLEDB.4.0 using the path (.mdb file) without DSN?
3. Which is the optimal Provider for Microsoft Access?
I thank you beforehand for your technical support.
Peter Mst.
Attachments:
BD5.mdb 116 KB
Protegida5.mdw 112 KB
sample_ADO_W2_JET.vi 45 KB
Maybe you are looking for
-
Invalid block count and poor performance
Hi - Can anyone help? Running an early 2011 13' MBP on ML. For a year - 18 months I've noticed poor performance at times, consistently slow boot (sometimes 5 minutes to usable), occasional lockups and spotlight often reindexes itself and slows the sy
-
All devices are using updated software and here's the issue: Mom & Dad each have an ipod 3gs. Two teen kids each have an ipod touch 4. All 4 devices use the same Apple ID, share free and purchased apps. The kids are receiving Mom and Dad's text mes
-
Why is my password auto saved on my 4gs?
After installing IOS 6 i no longer need to enter my password to update apps. How do I change it back so that I have to enter my ID/Password to update or install an app? Thanks.
-
Hi, I am unable to add variable to the __GLOBAL_DATA__ section of any object. I am only able to see this section in object overview. From some previous thread, it suggests to check in the menu extras for layout. But i dont find any such on my scr
-
Swing component prohibits loading web applet?
Hi all, I imported a JFilechooser using this java class: import javax.swing.JFileChooser; public class FXfilechooser { public static JFileChooser create() { JFileChooser fc = new JFileChooser(); return fc; } {color:#ff6600}FXfilechooser.java{color} a