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?
.Prashant
You need an oracle client installation and setup your TNS names.
Similar Messages
-
how do i detect DAQ device number programatticaly using Visual Basic (not using MAX)?
Several of the CWDAQ objects have Device (the device number), DeviceName, and DeviceType properties that I think will give you the information that you're looking for. For more information, look in the index of the Measurement Studio reference for Device, DeviceName, and DeviceType.
- Elton -
How to export a data as an XML file from oracle data base?
could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
Thankz in advance
BalaSQL> SELECT * FROM v$version;
BANNER
Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
5 rows selected.
SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
Directory created.
SQL> declare
2 doc DBMS_XMLDOM.DOMDocument;
3 xdata XMLTYPE;
4
5 CURSOR xmlcur IS
6 SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
7 'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")
8 ,xmlelement("EmployeeNumber",e.empno)
9 ,xmlelement("EmployeeName",e.ename)
10 ,xmlelement("Department",xmlelement("DepartmentName",d.dname)
11 ,xmlelement("Location",d.loc)
12 )
13 )
14 FROM emp e
15 , dept d
16 WHERE e.DEPTNO=d.DEPTNO;
17
18 begin
19 OPEN xmlcur;
20 FETCH xmlcur INTO xdata;
21 CLOSE xmlcur;
22 doc := DBMS_XMLDOM.NewDOMDocument(xdata);
23 DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');
24 end;
25 /
PL/SQL procedure successfully completed.
. -
How do you import data base dmp file in oracle 10g
How do you run data base dmp file in oracle 10g
Examples..
Table Exports/Imports
The TABLES parameter is used to specify the tables that are to be exported. The following is an example of the table export and import syntax:
expdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=expdpEMP_DEPT.log
impdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log
For example output files see expdpEMP_DEPT.log and impdpEMP_DEPT.log.
The TABLE_EXISTS_ACTION=APPEND parameter allows data to be imported into existing tables.
Schema Exports/Imports
The OWNER parameter of exp has been replaced by the SCHEMAS parameter which is used to specify the schemas to be exported. The following is an example of the schema export and import syntax:
expdp scott/tiger@db10g schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log
impdp scott/tiger@db10g schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=impdpSCOTT.log
For example output files see expdpSCOTT.log and impdpSCOTT.log.
Database Exports/Imports
The FULL parameter indicates that a complete database export is required. The following is an example of the full database export and import syntax:
expdp system/password@db10g full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=expdpDB10G.log
impdp system/password@db10g full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=impdpDB10G.log -
How we create new data base in oracle 10g express edition
hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition
Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
Using SYS or system accounts for creating user accounts.
Syntax to create a user:
create user Your_user
IDENTIFIED BY password
default tablespace users;
grant connect, resources to your_user;
Edited by: rober584812 on Jun 25, 2010 9:03 PM -
How to access Oracle database using UNIX?
Hi,
Does anyone know how to access Oracle database Oracle 8i that is hosted on unix server via unix command line?
Thanks,
WillyWell, Oracle probably has a command line tool. I think it's called sqlplus or somesuch. Check you Oracle docs.
Of course, given that this is a Java forum, it's remotely possible that you're actually asking about accessing the database from a Java program.
http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/ -
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!! -
Using R function on Oracle data base
for using R, I only can use Oracle data mining algorithms or I can use R function like social network in Oracle data base?
Oracle Advanced Analytics provides multiple language (SQL, R and if we include GUIs, Oracle Data Miner workflow UI) support to the in-DB analytics. Using SQL, R or the ODM'r GUI, you can access a library of simple descriptive, summary and coparative statistics that have been implemented in the Oracle Database + a dozen hi-perf in-DB data mining algorithms (e.g. regression, decision trees, text mining, clustering, associations, anomaly detection, etc.) and solve a wide range of business and technical problems.
Should you require additional techniques e.g. R CRAN packages, then Oracle Advanced Analytics supports that through R to SQL transparancy where it "pushes down" R language intentions to matching in-DB SQL functions e.g. ETL, stats and data mining OR it can make a callout to R via "embedded R mode" and have the Database manage the flow of data and the process.
There is an OTN Discussion Forum that focuses entirely on the "R" aspects of the Oracle Advanced Analytics Option. I suggest that you re-post your questiion here R Technologies for additional discusssions and for the benefit of that Oracle Advanced Analytics/Oracle R Enterprise OTN forum/community.
cb -
How to make a data base connexion in java?
I have an oracle 7 data base that i want to connect how to make a data base connexion in java?
J
D
B
C
Search these forums or follow the JDBC tutorial -
Abnormal increase in the oracle data base of XI dev
Hi Experts,
The size of the oracle data base for SAP-XI is increased by 9% abnormally in 1 day, where as 1% increase in the oracle data base size normally takes 1 to 2 weeks.
What could be the problem? Please give me some links or some idea how to check to know what causes this problem.
Thnx
SubbuHi Rama
You should look out for big tables. You can do this in transaction DB02 -> Detailed Analysis -> Size / Kbyte > 100000
This will give you all segments larger than 100mb. In an XI system the messages are stored in table XI_AF_MSG. It is also possible that your largest segment is a lob segment. You will then see something like SYS_LOB0000039303C00020$$.
To see which table it is just use this SQL:
[code]SQL> select table_name from dba_lobs where SEGMENT_NAME = 'SYS_LOB0000039303C00020$$';
TABLE_NAME
XI_AF_MSG[/code]
In DB02 you can also select the segment and view its history to make sure it is responsible for the database growth.
Best regards, Michael -
Can you use SQL Developer against non Oracle data bases?
If so, then how do you define the connection for non Oracle data bases?
Look, SQL Developer has got to be a 'gateway' into Oracle DBs from other databases. JDBC allows simple introspection and execution of SQL commands. So the 'explain' button won't be available, or some of the DDL stuff, big deal! Let them get a taste of what they are missing by not having an Oracle database.
If we can get non-Oracle developers (especially MS SQL Server) to use SQL Developer it will expose them to the superiority of the Oracle DB server.
If they have heterogenous services installed they are already an Oracle customer -- we have little additional DB server sale opportunity there. SQL Developer is a really sweet tool and it could be a real draw into the DB server sales.
SQL Developer must be easily usable by non-Oracle customers in order to help us sell the DB server to them! -
Hi Dear,
We have Recently Migrated to Oracle Tuxedo 11.1.1.2.0 Running on RHEL 6.3 and connecting Oracle Data Base 11.0.2.0.
We are informed by the Oracle Tuxedo Support that This tuxedo version Automatically re-connects to the oracle database once the Data base is rebooted.
Because of the above impression we removed all our reconnection code from our applications.
But unfortunately the servers are not automatically re-connecting to Oracle DB.
Can you Please let us know, whether really this version automatically re-connects to Oracle DB??
If Yes, How?? I mean is there any specific configuration to be done on Tuxedo??
Thanks in Advance .... :)
Rgds,
PlabanPlaban,
There are two ways to manage connections to Oracle Database (or any other XA compliant resource manager) with Tuxedo.
One way is to use the XA interface. This involves spcifying information about the resource manager in $TUXDIR/udataobj/RM, building TMS servers linked with the resource manager, using the "-r rmname" option on buildserver, and specifying the TMS server names and an OPENINFO string *GROUPS section of the UBBCONFIG file. When this option is chosen, application servers will not contain any logic to connect to or disconnect from the database and appllication servers will not contain any SQL statments to COMMIT WORK or ROLLBACK WORK. All of this will be managed by Tuxedo. If an XA call indicates that the resource manager is unavailable, Tuxedo will try to reconnect to the resource manager when subsequent tranasctional requests are received. (Note that if a server in an XA-associated group receives requests outside of transaction mode, then Tuxedo will not issue any XA calls and will not know if there are any problems with the database. You can specify AUTOTRAN=Y if you want to ensure that requests to certain services are processed in transaction mode.)
In releases prior to Tuxedo 11.1.1.2.0, it was necessary to set the TUXWA4ORACLE environment variable for this automatic reconnection to work when using Tuxedo with Oracle Database. (This was due to different interpretations of the XA standard back when BEA and Oracle were separate companies.) Starting with Release 11.1.1.2.0, it is no longer necessary to set TUXWA4ORACLE when using Oracle Database with Tuxedo.
There are also special considerations when using Tuxedo with Oracle Real Application Clusters, as described at http://docs.oracle.com/cd/E35855_01/tuxedo/docs12c/ads/adorac.html .
The other way to use Tuxedo with a database is to not use the XA interface and to manage connections to the database in the application. If this is done, then the application needs code to connect, disconnect, and reconnect to the database and to commit or rollback work where appropriate. If the XA interface is not used, then Tuxedo will not have any involvement with connection or reconnection to the database.
Regards,
Ed -
Load data from xml file in oracle data base
Hi all,
I'd like to know if is posible to load data from a file xml into a table of oracle data base through SQL*LOADER, loaded only in a normal column no with type XMLType , for example
I have a xml file
<person name="kate" surname="fari" city="new york" >
<son name="faus" age="18"/>
<son name="doly" age="10"/>
</person>
and I load in table :
table :person
column
name surname city
kate fari new york
table : son
name age
doly 10
faus 18
thank you for your return !!!!!!!!!
Ninova
Edited by: user10474037 on 30 mai 2011 08:47
Edited by: user10474037 on 30 mai 2011 08:48
Edited by: user10474037 on 30 mai 2011 08:48
Edited by: user10474037 on 30 mai 2011 08:49
Edited by: user10474037 on 30 mai 2011 08:50Hi
This May be found at
SQL Loader to upload XML file -
PLEASE REPLY ASAP.Unbale to connect to oracle data base using JSP.
hi,
I am not able to connect to oracle data base using JSP. PFB the code and out put.
<html>
<!--Importing the Packages-->
<%@ page import = "java.sql.*" %>
<body>
<%
try
out.println("hi<br>");
Connection conn = DriverManager.getConnection("jdbc:oracle:oci:@xxx.xxx.xx.xxx:xxxx:flstr800","user","paswordd");
out.println("connected<br>");
catch (SQLException e)
out.println("ERROR: failed to connect!");
out.println("ERROR: " + e.getMessage());
e.printStackTrace();
return;
%>
</body>
</html>
OUTPUT:
hi
ERROR: failed to connect! ERROR: No suitable driver found for jdbc:oracle:oci:@host:port
Please guide me on this issue.
Edited by: user10997061 on Apr 10, 2009 4:27 AMI definitely do not know much about JSP but
http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html
indicates
<quote>
This URL connects to the same database using the the OCI driver and the SID inst1 without specifying the username or password.
jdbc:oracle:oci:@myhost:1521:inst1
<quote>
I do not see the port information in your connect string. Is that an issue? -
How to access reference data in BPS Exit Function
Hi Experts,
Can any please tell me how to access reference data in BPS Exit function. I am creating a copy function using ABAP Exit Function (Std copy and fox formula doesn't work for my requirement).
Please suggest,
Thanks in advance,
ShiweshHi Deepti,
Thanks a lot for your reply. xth_data contains all the data based on package filteration. Let me explain you,
Say, I have a characteristic char and whose value is 'A', I want to change it to 'B' in my copy function, while keeping the original record with 'A' as well. So now I want my xth_data to contain two records, one with A and other with 'B'. I mean to say from value is 'A' and to value is 'B'. Now my package contains 'B' (the to value) as the allowed value, but not A because in the package I am setting this using a BPS variable. There are two types of variables, one is to variables other is from variable. There could be two scenarios,
1. If I set from varibale in the package: if I do so, I will have the data in xth_data containing 'A' as char value. But in this case when I change it to 'B' and try to save both the records, package won't recognize the record with value 'B' and reject it.
2. If I set to variable in the package: In this case the xth_data itself will not contain anything and I can not loop over xth_data because there is no record with 'B'. Only record available in the system is with 'A' values.
That is why I am thinking about having reference daya somewhere. I could loop over reference data and then pass it to xth_data. Package will contain to variable so it will allow all my modifications to get saved.
Thanks and regards,
Shiwesh
Maybe you are looking for
-
Backup problem in SAP BW 3.5
Dear All, I am using SAP BW 3.5 with Oracle 9.2. I started the job via DB13 after that I am receiving the error Job started Step 001 started (program RSDBAJOB, variant &0000000000029, user ID BASIS) No application server on database host - rsh will b
-
I'm still a little stuck on preparing graphics for use in Keynote. I had a bad experience with using images that were way too big, and the presentation was slow to load resulting in a very squirmy audience. Not good. So. I have a huge aerial photogra
-
Extra Measure/Column on Pivot Table
Hi at all, i have a problem about the pivot table in obiee11g. I need an extra measure/column or a new table/pivot-table with new measures out of an other fact-table riht behind the first pivot table wich depends on the first pivot-table. Thx
-
Pass data from servlet to jsp using sendRedirect
Hi, I am passing data from servlet to jsp using forward method of request dispatcher but as it doesn't change the url it is creating problems. When ever user refreshes the screen(browser refresh) it's re-loading both servlet and jsp, which i don't wa
-
I can not get my itunes to sort my library in alphabetical order by artist?? Nor can I get the listing to be numbered...ie...1...2...3...4...5 etc.....Can anyone help?? It used to be able to alphabetize my list correctly before I downloaded the 11.