SQL & PL/SQL :: Code To Connect External Database

Apr 8, 2013

How to write a code(procedure) to connect external database through PLsql coding.. I mean,

first, "Create connection like connection string", then "retrieve data from tables inside the database".

View 4 Replies


ADVERTISEMENT

SQL & PL/SQL :: Hard Code Bad File Names For External Table

Apr 7, 2011

I have question on the following, that gets defined for the bad file and the log file

BADFILE 'bad_%a_%p.bad'
LOGFILE 'log_%a_%p.log'

What does the %a and % p indicate? Also if I wanted to get the value of %p and %a into a variable how would I do it? I want to be able to append %p and %a to the below variable, but unsure how to achieve it..

l_badfile := file_nm || '.bad' ;

View 3 Replies View Related

Application Express :: Connect To External System Using Oracle APEX?

Jun 21, 2012

While browsing through the APEX, just wondering if there is any way to connect external database.

Like i have database connection string/user/password and service.

Is there any way to define these information in APEX to connect with external database?

View 5 Replies View Related

SQL & PL/SQL :: Compare SVN Source Code With Production Code In Database

May 30, 2012

I have to compare my SVN source code (packages, views etc) with the production code in the database like views etc (actually we are not sure that what we have in the svn is the final version of production code, we have objects created in the production database, but we don't have latest scripts for that. we have to deploy the svn code in the UNIX box).

So here the comparison is between the OS files and the database objects.

I thought I would get scripts of all the packages, views etc from the production database by using DBMS_METADATA or some utility and save the code in OS files then compare one svn file with OS file manually by using some comparison tools e.g toad provide one comparison tool.

View 5 Replies View Related

SQL & PL/SQL :: Code To Connect To GSM SMSC And Send SMS

Jan 18, 2012

I work for a GSM operator and I need to create an application that can send SMS to our clients. What are the codes for procedures to be created in a oracle database to connect (using SMPP) to our SMSC and send SMS's.

View 14 Replies View Related

PL/SQL :: Connectivity Code To Connect Oracle DB In UNIX?

Jun 13, 2013

i need a connectivity code to connect oracle DB in UNIX.pls send me a code exactly.

View 2 Replies View Related

Connect Oracle Database From Delphi - Could Not Resolve Connect Identifier Specified

Oct 6, 2010

I have the following computer/setup:

Acer laptop, Intel Processor w/ Windows 7 Professional (64-bit)
Delphi 2010 Professional
Oracle XE (+ the Oracle XE client that comes with it)

I cannot can't to the Oracle database from Delphi. The error I keep getting is:

Alias is not currently opened. [Oracle][ODBC][Ora]ORA-12154:TNS: could not resolve the connet identifier specified.

Here's what I've done:

1. Create an ODBC connection to my Oracle database

- run C:WindowsSysWOW64odbcad32.exe to open the ODBC administrator.
- Data source name: bt_user
- TNS Server Name: localhost/xe
- user bt_user
- Clicked "test connection" -- Success.

2. Open Delphi and drop a TDatabase component on my main form.

- Set the Alias Name property to "bt_user" (the alias I set up in ODBC)
- Set database name to "bt_user".
- Checked "connected".

Alternatively, I tried using the Delphi ADO components (the dbGo components).

- Drop TADOConnection component on my form.
- Select "connection string" and open the dialog.
- Click "build string".
- Select "Microsoft OLE DB Provider for ODBC Drivers" from the selection.
- In "use data source", select "bt_user" from the drop-down list (my ODBC connection from #1)
- Click "test connection".

Again the same error.

My questions are:

1. Can Delphi work with Oracle XE (Express Edition)?

2. If so, then do I need to install the "Instant Client"?

3. Will the instant client for Oracle 10g work with Oracle 10g XE?

4. Do I need to install any additional ODBC driver(s)?

5. Why was I successful in creating the ODBC connection in Windows, but it failed in Delphi?

6. Will Visual Studio.NET (C#) work with Oracle XE, and what are the steps for setting that up?

View 2 Replies View Related

DB LINK To External Database?

Jul 10, 2013

i need access to a view running on another database server. i configured my db link and tried to compile the view. but the following message occurs: ora-12154: TNS: Connection Identifier..

View 16 Replies View Related

SQL & PL/SQL :: External Table Does Not Require Database But Where They Stored

Mar 10, 2010

For external tables does not require any database space.But where the external tables are storing.

View 3 Replies View Related

SQL & PL/SQL :: Verifying Database Connection From External Java Process?

Apr 11, 2013

Is there any way, in Oracle where I can find out if there is any process from some machine which has been successfully connected database ?

View 5 Replies View Related

SQL & PL/SQL :: How To Store External File (XLS / Doc / PDF) Format In Oracle Database

Feb 1, 2011

I want to stored the excel or ms word document in oracle database. Is it possible to view that file from database. If i export full database it is included in that dmp.

View 5 Replies View Related

SQL & PL/SQL :: Interfacing Data From Oracle Database To External System

Feb 24, 2012

I have an issue with the text area column(Column name-Text) while interfacing the data from oracle database to external system.The data in database is saved as:

This is test entry for commentfield.
testing the script
Pre-production
23-FEB-2012

We want all the line breaks to replaced with a space or a comma. to implement this i have used to simple select as :

Select Replace(text,chr(10),'')
From paymemo
where referencepkey = (select pkey from paymain where ID = 'DED-520074 505354DN6 2012-02-04 00:06:48');

This is not working because of type conversion issues.

View 6 Replies View Related

SQL & PL/SQL :: External Table Query (compare Number Records In File With External Table)

Jan 23, 2013

I have got a procedure that successfully creates an oracle external table and populates it with the contents of a file. This works fine until I have a situation where one of the fields is a VARCHAR2(2) and I try to insert say, a 5 character value. When this happens the record in question does not get populated in the external table (and rightly so), but I could do with working out if there is a discrepancy in the number of records in the file and the number of records that actually make it into the table so I could inform the user that there is a problem.

I have attached the code that creates the external table and populates it.

View 5 Replies View Related

Reports & Discoverer :: Bar Code Reader Will Readout Code

Feb 12, 2009

I have no knowledge about Barcode. The problem is an issue of Loyalty Cards of a Hotel and Restaurant to various customers and then these cards will be presented by the customers time to time in the Hotel as well as Restaurant. The Owner of the Hotel and Restaurant wants to generate separate barcode for each card and when this card will be presented then the bar code reader will readout the code and the system will calculate the amount of discount/rebate. Because if the data entry operator enter the code of the card through key board the it will be a chance of leakage or misuse of that card.

View 8 Replies View Related

How To Review Implication Of Database Character Set Change On PL/SQL Code

Sep 14, 2013

We are converting WE8ISO8859P1 oracle db character set to AL32UTF8. Before conversion, i want to check implication on PL/SQL code for byte based SQL functions.

What all points to consider while checking implications on PL / SQL code? I could find 3 methods on Google surfing, SUBSTRB, LENGTHB, INSTRB. What do I check if these methods are used in PL/SQL code?

What all other methods should I check? What do I check in PL/SQL if varchar and char type declarations exist in code? How do i check implication of database character set change to AL32UTF8 for byte bases SQL function.

View 1 Replies View Related

Forms :: Code To Store Images Inside Database

Jan 11, 2011

//To load an image from the Hard Disk
//Level : Item
//Type : Trigger
//Name : When Button Pressed
Declare
[code]......

Now what should be the code to store this image from the image box inside the database? I done a lot of time with Oracle Data Base 11g with the Form Builder 6i and 10g but all in vain . No image store inside the database but browse button work well.

View 10 Replies View Related

Vendor Code 17002 - Unable To Login To Database

Feb 21, 2011

I am unable to login to my database. I get an error that says "Io exception: the network adapter could not establish the connection" "vendor code 17002".

View 5 Replies View Related

SQL & PL/SQL :: Type In Code To Make Few Tables Then Run Code

Feb 13, 2012

I downloaded oracle sql developer, i type my code into a worksheet but if i use the run statement option, it asks me to make a connection. I dont want to make a connection, just test the data locally.However, even if I do try and make a connection, i get ora-12560 error (local connection).

I just want to type up some data to make some table and test to retrieve or manipulate the data. I'll use any program, command line or gui.

View 7 Replies View Related

Can Connect From Database 1 To 3

Nov 10, 2011

For example, I have 3 database, database 1 and database 2 connect together by database link db_link1, database 2 and database 3 connect together by database link db_link2.

I want to ask: Can I connect from database 1 to database 3 ? ( Of course don't use database link between database 1 and 3, just use database db_link1 and db_link2 )

Both db_link1 and db_link2 are public database link.

Can I restrict user access by 2 these public database link ?

View 1 Replies View Related

ORA-257 Not Able To Connect To Database?

Feb 11, 2013

I am not able to connect to database due to ORA-257. So manually i deleted the archivelog files in diskgroup. however it is showing 13gb free space after deletiion. Archive log files generated due to Import job is running.

In below ways i have tried to connect to database.

1) Through SQLPLUS (Not able to Connect)
2) Through RMAN i tried to connect (Not able to connect)
3) I tried to connect impdp to stop the running job. It was also failed

View 7 Replies View Related

How To Connect To SQL Database Server

Feb 23, 2009

I do not know how to create a connection between oracle to SQL server using topology manager on my application. I understand that I must create a logical and physical architecture to create the connection and the logical and physical architecture is running under topology manager.

View 1 Replies View Related

Forms :: How To Connect Database

Jul 18, 2011

while new form open i need to connect the data base.

View 5 Replies View Related

SQL & PL/SQL :: Password To Connect To Database

Oct 24, 2010

I extracted the script of creating user in my database in SQL navigator and Toad tools but it is displaying encrypted password. But I am unable to connect with that password.

To get the original password then I will be able to connect my database.

View 3 Replies View Related

Forms :: How To Connect 6i To Run On SQL Database

Aug 26, 2010

How can I connect forms6i to run on SQL database ?

View 4 Replies View Related

ORA-00604 When Connect To Database

Sep 10, 2008

I'm writing PRO C program with oracle 8i. My process first connect to the database with using ora_connect(), proceed the task then diconnect with using ora_disconnect(). This would always in a loop, recently after few cycle of connect and disconnect, when the next issue connect statement, it was unable to connect and return me ora-00604 and the process end. Even i restart the process, after few cycle also the same return me ora-00604 during the connect.

View 3 Replies View Related

Database 10.2.0.3 - Cannot Connect To Sqlplus?

Aug 29, 2012

My database in on 10.2.0.3 and facing hang problem when I am connecting to sqlplus.

bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.3.0 - Production on Wed Aug 29 00:54:03 2012

Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

ERROR:
ORA-01075: you are currently logged on

As per Metalink note(215858.1) suggested in forums I have followed steps and produced results below.

bash-3.00$ sqlplus -prelim

SQL*Plus: Release 10.2.0.3.0 - Production on Tue Aug 28 23:28:02 2012

Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

Enter user-name: / as sysdba
SYS on test>oradebug help
SYS on test>oradebug setmypid
Statement processed.
SYS on test>oradebug hanganalyze 12

[code]...

Now I have got struck how to analyze above results.

View 3 Replies View Related

ODP.NET :: Connect To Database Oracle With C#

Oct 19, 2012

I am trying to develop a web application with C # VS.net, my application is to connect to an Oracle database on a server (LAN), the problem I want to connect to the database without install oracle or ODP on my client machine.

View 1 Replies View Related

How To Connect D2k Form To Database

Jun 8, 2011

How can i connect my d2k form to database, when i installed d2k it gave an error like :

user1.pin(20):os_error while spawning ifsrv660-install forms60 server port=9000
mode=socket batch=yes

after installation when i want to compile my form it gave tns error like:
ora-12154:tns:could not resolve service name

View 3 Replies View Related

XE :: 11g - Can't Connect To Database After Installation

Jan 31, 2013

I recently installed Oracle database 11g XE onto my home computer running Windows 32 bit, but I can't connect to the database. I also have Oracle 10g R2 installed on my computer, and I can still connect to it finely. When trying to make a connection in SQL DEVELOPER, I get this error

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

I tried to tnsping the XE database and it returns successfully.

C:>tnsping xe
TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 31-JAN-2
013 07:59:17
Copyright (c) 1997, 2010, Oracle.  All rights reserved.
Used parameter files:
C:oraclexeapporacleproduct11.2.0server
etworkadminsqlnet.ora

[code]....

View 3 Replies View Related

SQL & PL/SQL :: How Many Users Can Connect With Database

Apr 23, 2010

I want to know what will be the performance of my DB before loading data and how many users can connect with my database.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved