Use dg4msql in Oracle 11.1.0.6.0
Hi all,
i would like to use dg4msql in my 1.1.0.6.0 installation. Searching on the metalink site I found a document related.
In this document is said that you have to aplly the patch number 5965763. It said also "Applies to:Oracle Database Gateway for SQL Server - Version: 11.1.0.6 to 12.0.0.0".
But when I try to apply this patch prerequisite check fails because I have a rdbms 11.1.0.6.0 and a lower version is required.
I have search some information about this but found nothing.
In the same machine we have another 10.2.0 oracle installation, can this affect?? Any ideas??
Thank you in advance,
Alex
The patch you are refering to does NOT contain any gateway. It is a database patch to make older database releases compatible with the V11 gateways.
The V11 gateway can be downloaded from edelivery: http://edelivery.oracle.com. You have to enter the contact details, confirm export and license restrictions and then you have to choose Oracle Database as product and select the correct platform. You'll get a list of available products for download. Choose 11g CD pack and look for "gateway". Download this CD and install the gateway from this dediacted gateway CD.
Similar Messages
-
Problem to connect SQL Server using dg4msql form Linux machine
Hi All,
I have oracle 11g 11.2.0.1.0 on RHEL 4 on one machine and MS SQL Server 2000 on another Windows XP machine. I have to link the oracle database with SQL Server Database. So that we can run queries on SQL Server from Oracle 11 Database.
For this purpose I have installed Oracle Database 11g Release 2 (11.2) Gateway for SQL Server on oracle machine.
For the purpose of configuration, I have followed the instructions of Doc ID (437374.1) available from oracle metalink.
listener.ora file
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /opt/orabase/orahome11g)
(SID_NAME = orcl)
(SID_DESC=
(SID_NAME=dg4msql)
(ORACLE_HOME=/opt/orabase/orahome11g)
(ENVS="LD_LIBRARY_PATH=/opt/orabase/orahome11g/dg4msql/driver/lib:/opt/orabase/orahome11g/lib")
(PROGRAM=dg4msql)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.15)(PORT = 1522))
ADR_BASE_LISTENER = /opt/orabase
tnsnames.ora file
DG4MSQL =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.10.15)(PORT=1522))
(CONNECT_DATA=(SID=dg4msql))
(HS=OK)
initdg4msql.ora file
# HS init parameters
HS_FDS_CONNECT_INFO=172.16.30.51:1433//Northwind
I have created DB link using following statement:
CREATE public DATABASE LINK dg4 CONNECT TO "sa" IDENTIFIED BY "sa" USING 'dg4msql';
when I give select statement, It gives following error:
select * from "Employees"@dg4
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Oracle][ODBC SQL Server Driver][libssclient24]General network error. Check
your network documentation. {08001,NativeErr = 11}[Oracle][ODBC SQL Server
Driver][libssclient24]ConnectionOpen (()). {01000,NativeErr = 11}[Oracle][ODBC
SQL Server Driver]Invalid connection string attribute {01S00}
ORA-02063: preceding 2 lines from DG4
I will appreciate if anyone can help meThe general DG4MSQL configuration is correct as DG4MSQL is loaded and tries to connect to the SQL Server.
Is the IP Address and the SQl Server port (HS_FDS_CONNECT_INFO=172.16.30.51:1433//Northwind) correct?
Can you ping it from the Oracle gateway machine?
Can you telnet to it from the gateway machine to the SQl Server: "telnet 172.16.30.51 1433" -
Error with decimal value using DG4MSQL
Hello,
when i make an update on a numeric column [numeric(38,15)] of a database table residing on a MS-SQL-Server 2005 it works fine when the value has no decimal part:
declare
v_test1 number := 1;
begin
update CUSTOMER@DBL_MSSQL4 set "freenumber1" = v_test1;
commit;
end;
/But if i use a value with a decimal part it gets an error
declare
v_test1 number := 1.2;
begin
update CUSTOMER@DBL_MSSQL4 set "freenumber1" = v_test1;
commit;
end;
/Error message:
ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zurück:
[Oracle][ODBC SQL Server Driver]Ungültiger Zeichenwert für Konvertierungsangabe
ORA-02063: vorherige 2 lines von DBL_MSSQL4
ORA-06512: in Zeile 7And here is the trace:
Oracle Corporation --- MONTAG MRZ 08 2010 15:20:14.940
Heterogeneous Agent Release
11.1.0.6.0
Oracle Corporation --- MONTAG MRZ 08 2010 15:20:14.940
Version 11.1.0.6.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
HOSGIP returned value of "RECOVER" for HS_FDS_RECOVERY_ACCOUNT
HOSGIP returned a value for HS_FDS_RECOVERY_PWD
setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL16UTF16"
setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "FALSE"
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
Exiting hgosdip, rc=0
ORACLE_SID is "DG4MSQL"
Product-Info:
Port Rls/Upd:6/0 PrdStat:0
Agent:Oracle Database Gateway for MSSQL
Facility:hsa
Class:MSSQL, ClassVsn:11.1.0.6.0_0006, Instance:DG4MSQL
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=178
HOCXU_DRV_NCHAR=2000
HOCXU_DB_CSET=178
HOCXU_SEM_VER=102000
Entered hgolofn at 2010/03/08-15:20:14
RC=-1 from HOSGIP for "PATH"
PATH from environment is "D:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\IBM\Informix\Client-SDK\bin;C:\Programme\Microsoft SQL Server\90\Tools\binn\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsPowerShell\v1.0"
Exiting hgolofn, rc=0 at 2010/03/08-15:20:14
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
Exiting hgoinit, rc=0 at 2010/03/08-15:20:14
Entered hgolgon at 2010/03/08-15:20:14
reco:0, name:testuju, tflag:0
Entered hgosuec at 2010/03/08-15:20:14
uencoding=UTF16
Entered shgosuec at 2010/03/08-15:20:14
Exiting shgosuec, rc=0 at 2010/03/08-15:20:14
shgosuec() returned rc=0
Exiting hgosuec, rc=0 at 2010/03/08-15:20:14
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using testuju as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2010/03/08-15:20:14
HS_FDS_CONNECT_INFO = "OBELIXUS//testuju"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2010/03/08-15:20:14
dsn:OBELIXUS//testuju, name:testuju
optn:
Entered shgogohn at 2010/03/08-15:20:14
ohn is 'OraGtw11g_home1'
Exiting shgogohn, rc=0 at 2010/03/08-15:20:14
Entered hgocont_OracleCsidToIANA at 2010/03/08-15:20:14
Returning 2252
Exiting hgocont_OracleCsidToIANA at 2010/03/08-15:20:15
##>Connect Parameters (len=211)<##
## DRIVER=Oracle 11g dg4msql-OraGtw11g_home1;
## SERVER=OBELIXUS;
## Database=testuju;
#! UID=testuju;
#! PWD=*
## AnsiNPW=Yes;
## QuotedId=Yes;
## IANAAppCodePage=2252;
## ArraySize=100;
## PadVarbinary=0;
## SupportNumericPrecisionGreaterThan38=1;
Exiting hgogenconstr, rc=0 at 2010/03/08-15:20:15
DriverName:HGmsss22.dll, DriverVer:05.20.0053 (b0041, u0024)
DBMS Name:Microsoft SQL Server, DBMS Version:09.00.3068
Exiting hgocont, rc=0 at 2010/03/08-15:20:15
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 128 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2010/03/08-15:20:15
Entered hgoulcp at 2010/03/08-15:20:15
Entered hgowlst at 2010/03/08-15:20:15
Exiting hgowlst, rc=1 at 2010/03/08-15:20:15
SQLGetInfo returns Y for SQL_PROCEDURES
Exiting hgoulcp, rc=0 at 2010/03/08-15:20:15
Entered hgouldt at 2010/03/08-15:20:15
Exiting hgouldt, rc=0 at 2010/03/08-15:20:15
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber1
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber2
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber3
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber4
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber5
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber6
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber7
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber8
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber9
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber10
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber11
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber12
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber13
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber14
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber15
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber16
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber17
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber18
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber19
3 DECIMAL Y 41 41 38/ 15 0 0 0 freenumber20
91 DATE Y 16 16 0/ 0 0 0 0 freedate1
91 DATE Y 16 16 0/ 0 0 0 0 freedate2
91 DATE Y 16 16 0/ 0 0 0 0 freedate3
91 DATE Y 16 16 0/ 0 0 0 0 freedate4
91 DATE Y 16 16 0/ 0 0 0 0 freedate5
91 DATE Y 16 16 0/ 0 0 0 0 freedate6
91 DATE Y 16 16 0/ 0 0 0 0 freedate7
91 DATE Y 16 16 0/ 0 0 0 0 freedate8
91 DATE Y 16 16 0/ 0 0 0 0 freedate9
91 DATE Y 16 16 0/ 0 0 0 0 freedate10
91 DATE Y 16 16 0/ 0 0 0 0 freedate11
91 DATE Y 16 16 0/ 0 0 0 0 freedate12
91 DATE Y 16 16 0/ 0 0 0 0 freedate13
91 DATE Y 16 16 0/ 0 0 0 0 freedate14
91 DATE Y 16 16 0/ 0 0 0 0 freedate15
91 DATE Y 16 16 0/ 0 0 0 0 freedate16
91 DATE Y 16 16 0/ 0 0 0 0 freedate17
91 DATE Y 16 16 0/ 0 0 0 0 freedate18
91 DATE Y 16 16 0/ 0 0 0 0 freedate19
91 DATE Y 16 16 0/ 0 0 0 0 freedate20
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean1
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean2
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean3
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean4
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean5
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean6
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean7
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean8
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean9
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean10
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean11
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean12
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean13
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean14
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean15
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean16
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean17
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean18
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean19
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean20
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean21
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean22
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean23
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean24
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean25
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean26
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean27
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean28
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean29
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean30
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean31
3 DECIMAL Y 3 3 1/ 0 0 0 0 freeboolean32
12 VARCHAR Y 50 50 0/ 0 0 0 0 custtypekey
-4 LONGVARBINARY Y 0 0 0/ 0 0 0 20 logo
3 DECIMAL Y 3 3 1/ 0 0 0 0 Active
91 DATE N 16 16 0/ 0 0 0 0 CreateDate
12 VARCHAR Y 50 50 0/ 0 0 0 0 CreateUser
91 DATE N 16 16 0/ 0 0 0 0 UpdateDate
12 VARCHAR Y 50 50 0/ 0 0 0 0 UpdateUser
12 VARCHAR Y 50 50 0/ 0 0 0 0 Status
12 VARCHAR Y 50 50 0/ 0 0 0 0 WFInstanceId
12 VARCHAR Y 50 50 0/ 0 0 0 0 RightPk
3 DECIMAL Y 12 12 10/ 0 0 0 0 ClientNo
3 DECIMAL Y 3 3 1/ 0 0 0 0 MassData
3 DECIMAL Y 3 3 1/ 0 0 0 0 OfflineData
12 VARCHAR Y 50 50 0/ 0 0 0 0 PersonPk
Exiting hgodscr, rc=0 at 2010/03/08-15:20:16
Entered hgotcis at 2010/03/08-15:20:16
Calling SQLStatistics for CUSTOMER
Calling SQLColumns for testuju.CUSTOMER
Exiting hgotcis, rc=0 at 2010/03/08-15:20:16
Entered hgoclse, cursor id 1 at 2010/03/08-15:20:16
Exiting hgoclse, rc=0 at 2010/03/08-15:20:16
Entered hgodafr, cursor id 1 at 2010/03/08-15:20:16
Exiting hgodafr, rc=0 at 2010/03/08-15:20:16
Entered hgopars, cursor id 1 at 2010/03/08-15:20:16
type:0
SQL text from hgopars, id=1, len=39 ...
00: 41445055 22204554 54535543 52454D4F [UPDATE "CUSTOMER]
10: 45532022 66222054 6E656572 65626D75 [" SET "freenumbe]
20: 20223172 3D203F [r1" = ?]
Exiting hgopars, rc=0 at 2010/03/08-15:20:16
Entered hgoexec, cursor id 1 at 2010/03/08-15:20:16
octype=2
hgoexec, line 91: Printing hoada @ 02175BCC
MAX:1, ACTUAL:1, BRC:1, WHT=3
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
3 DECIMAL N 65 0 0/ 0 0 0 0 ?
Entered hgoprbv at 2010/03/08-15:20:16
hgoprbv, line 119: Printing hoada @ 02175BCC
MAX:1, ACTUAL:1, BRC:1, WHT=3
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
3 DECIMAL N 65 0 0/ 0 0 0 0 ?
Exiting hgoprbv, rc=0 at 2010/03/08-15:20:16
Entered hgopoer at 2010/03/08-15:20:16
hgopoer, line 159: got native error 0 and sqlstate 22018; message follows...
[Oracle][ODBC SQL Server Driver]Ungültiger Zeichenwert für Konvertierungsangabe
Exiting hgopoer, rc=0 at 2010/03/08-15:20:16
hgoexec, line 216: calling SQLExecute got sqlstate 22018
nrows:0
Exiting hgoexec, rc=28500 at 2010/03/08-15:20:16 with error ptr FILE:hgoexec.c LINE:216 ID:Executing SQL stmt
Entered hgocomm at 2010/03/08-15:24:22
keepinfo:0, tflag:1
00: 44555248 45522E42 53455247 44522E53 [HRUDB.REGRESS.RD]
10: 2E534D42 2E564544 4F2E5355 4C434152 [BMS.DEV.US.ORACL]
20: 4F432E45 65312E4D 33366465 322E6631 [E.COM.1eed631f.2]
30: 2E34332E 38363832 31 [.34.28681]
tbid (len 10) is ...
0: 00220002 00007009 0104 [.."..p....]
cmt(0):
Entered hgocpctx at 2010/03/08-15:24:22
Exiting hgocpctx, rc=0 at 2010/03/08-15:24:22
Exiting hgocomm, rc=0 at 2010/03/08-15:24:22
Entered hgolgof at 2010/03/08-15:24:22
tflag:1
Exiting hgolgof, rc=0 at 2010/03/08-15:24:22
Entered hgoexit at 2010/03/08-15:24:22
Exiting hgoexit, rc=0 at 2010/03/08-15:24:22The init file for the DG4MSQL look like this:
HS_FDS_CONNECT_INFO=OBELIXUS//testuju
HS_FDS_TRACE_LEVEL=DEBUG
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVERAny ideas what i have to change to be able to update numeric columns with values containing a deciomal part using DG4MSQL?
Many thanks in advance for any help.
Regards HartmutHello Mike,
here the results of the given select statements:
select * from NLS_DATABASE_PARAMETERS;
NLS_LANGUAGE AMERICAN
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET WE8MSWIN1252
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_RDBMS_VERSION 10.2.0.4.0select * from NLS_INSTANCE_PARAMETERS ;
NLS_LANGUAGE GERMAN
NLS_TERRITORY GERMANY
NLS_SORT
NLS_DATE_LANGUAGE
NLS_DATE_FORMAT
NLS_CURRENCY
NLS_NUMERIC_CHARACTERS
NLS_ISO_CURRENCY
NLS_CALENDAR
NLS_TIME_FORMAT
NLS_TIMESTAMP_FORMAT
NLS_TIME_TZ_FORMAT
NLS_TIMESTAMP_TZ_FORMAT
NLS_DUAL_CURRENCY
NLS_COMP
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSEselect * from NLS_SESSION_PARAMETERS ;
NLS_LANGUAGE GERMAN
NLS_TERRITORY GERMANY
NLS_CURRENCY €
NLS_ISO_CURRENCY GERMANY
NLS_NUMERIC_CHARACTERS ,.
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT MM/DD/YYYY HH24:MI:SS
NLS_DATE_LANGUAGE GERMAN
NLS_SORT GERMAN
NLS_TIME_FORMAT HH24:MI:SSXFF
NLS_TIMESTAMP_FORMAT DD.MM.RR HH24:MI:SSXFF
NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
NLS_TIMESTAMP_TZ_FORMAT DD.MM.RR HH24:MI:SSXFF TZR
NLS_DUAL_CURRENCY €
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSEThat was easy, but how and where to read the settings of the MS-SQL-Server?
All i can find is
Sprache Deutsch (Deutschland)
Standardsprache EnglischI have defined one more parameter in the ini<...>.ora file:
HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252and now it works!
(With "HS_LANGUAGE=GERMAN_GERMANY.WE8MSWIN1252" is gives the same old error.)
Many thanks for your help!
Reagrds Hartmut -
Problem connection to SQL Server using DG4MSQL gateway.
I am getting the following error trying to use a SQL gateway on Windows platforms:
TNSPing seems fine (which seems like listener is fine).
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from DG4MSQL
The dg4msql gateway (32 bit box, 11.2.0) exists on a separate machine from the 64 bit Oracle database (10.2.0.4)
and is trying to call a MS SQL 2005 database. The listener starts and stops fine and TNSPing from the database box returns OK.
Thanks for any advice in advance and sorry for the length of the post but I tried to show all the relevant parts. I am a newbie for sure.
The Oracle_Home is on: C:\product\11.2.0\tg_1 and that is included as the first part of the path statement (C:\product\11.2.0\tg_1\bin).
LISTENER.ORA File (running on the gateway server box)
=============================
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = clickimrs.blackfoot.com)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=dg4msql)
(ORACLE_HOME=C:\product\11.2.0\tg_1)
(PROGRAM=dg4msql)
initdg4msql.ORA file (exists in C:\product\11.2.0\tg_1\dg4msql\admin on gateway box)
====================================
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[MG-FM]/MG-FM/Blackfoot_OasisFM
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
TNSMAMES.ORA (running on the database server box)
=======================================
dg4msql =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=CLICKIMRS.blackfoot.com)(PORT=1521))
(CONNECT_DATA=(SID=dg4msql))
(HS=OK)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
SQLNET.ORA (running on the database server box)
=====================================
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
My create dblink statement:
====================================
create public database link dg4msql connect to "Axiom" identified by "ax" using 'dg4msql';listener status from listener on Gateway machine:
==============================================================
C:\Documents and Settings\tiefentr>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 20-OCT-2010 13:24
:06
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=clickimrs.blackfoot.com)
(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 20-OCT-2010 11:47:47
Uptime 0 days 1 hr. 36 min. 19 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\product\11.2.0\tg_1\network\admin\listener.ora
Listener Log File c:\product\11.2.0\tg_1\diag\tnslsnr\clickimrs\listener
\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=clickimrs.blackfoot.com)(PORT=1521))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
===================================================================
TNSPING from HOST machine housing Oracle DB:
C:\Documents and Settings\tiefentr>tnsping dg4msql
TNS Ping Utility for 64-bit Windows: Version 10.2.0.4.0 - Production on 20-OCT-2
010 13:20:21
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=CLICKIMRS.black
foot.com)(PORT=1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
OK (60 msec) -
Cannot query MSSQL system tables over db link created using DG4MSQL
I am trying to create db link from Oracle 11g to SQL Server 2005 using DG4MSQL gateway. After creating db link I am not able to query MSSQL system views(sys.services or sys.objects) using JDBC driver. But I am able to query all user tables using JDBC driver. But if I use sqlplus, I am able to query all tables including system tables. Since my project is Java project, I am bound to use JDBC driver. One more observation I made is that, if I use DG4ODBC instead of DG4MSQL gateway, then I am able to query all MSSQL tables including system tables uding JDBC driver. Please let me know if there are any ways I can query MSSQL system tables using DG4MSQL and JDBC driver.
Edited by: user13398705 on Dec 20, 2011 2:08 AMThere's a bug in the JDBC driver and for 11.2.0.1 a fix is available on my Oracle Support -> look for fix 9496068 - it is a generic platform fix. According to the bug matrix this fix is also included in the 11.2.0.3 JDBC driver. Are you using this JDBC driver version?
-
Hi,
I am trying to connect Oracle 10g (v.10.2.0.2.0) to MS SQL Server 2008. Oracle is installed on SUSE Linux Enterprise Server x86 and MSSQL Server has installed on Win Server 2003.
Oracle database is 32-bit, and there is istalled Oracle Database Gateways (c. 11.2.0.1.0).
When I try use tnsping referencing SQLServer (dg4msql) returns TNS-12541: no listener.
See configuration:
-- initdg4msql.ora
# HS init parameters
HS_FDS_CONNECT_INFO=192.168.0.15:1433//master
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
-- listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
(SID_DESC=
(SID_NAME= dg4msql)
(ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1)
(ENVS=LD_LIBRARY_PATH=/u01/app/oracle/product/10.2.0/db_1/dg4msql/driver/lib:/u01/app/oracle/product/10.2.0/db_1/lib)
(PROGRAM= dg4msql)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(ADDRESS = (PROTOCOL = TCP)(HOST = db-oracle-old)(PORT = 1521))
-- tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
dg4msql =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.15)(PORT = 1521))
(CONNECT_DATA =
(SID=dg4msql))
(HS=OK)
TALT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.18)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = talt)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
Edited by: 866711 on 17/06/2011 13:49Hi,
Your configuration does not look correct.
You say you are trying to connect from 10.2.0.2 to SQL*Server using Dg4MSQL 11.2.0.1.
However, the information in the listener.ora shows you have installed the 11g gateway into the 10.2 ORACLE_HOME -
(SID_DESC=
(SID_NAME= dg4msql)
(ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1)
(ENVS=LD_LIBRARY_PATH=/u01/app/oracle/product/10.2.0/db_1/dg4msql/driver/lib:/u01/app/oracle/product/10.2.0/db_1/lib)
(PROGRAM= dg4msql)
This is not correct. The 11.2 gateway should be installed into a completely separate ORACLE_HOME from the 10.2 install.
If you already had a 10.2 RDBMS in the OH /u01/app/oracle/product/10.2.0/db_1 then you need to do the following -
- restore the OH /u01/app/oracle/product/10.2.0/db_1 to the point it was before you installed the 11.2 gateway into that OH.
- install 11.2 DG4MSQL into a completely separate OH and create the gateway listener.ora from that OH
- the tnsnames.ora entry in the 10.2 OH then needs to point to the new gateway listener.
Also, to use a 11.2 gateway from a 10.2 RDBMS the RDBMS needs to be at version 10.2.0.4 or 10.2.0.5 as these versions include a compulsory compatibility patch.
If you did not have a 10.2 RDBMS in /u01/app/oracle/product/10.2.0/db_1 before you made the gateway install then check the following -
- is the gateway listener started ? What is the output from -
lsnrctl start
lsnrctl status
- is host 192.168.0.15 the same as db-oracle-old ?
Regards,
Mike -
Error while using P2V in Oracle VM 2.2 version
Error while using P2V in Oracle VM 2.2 version
I tried using this option by using the steps given on one link but it didnt worked...
Error:
code 404, message No permission to list directory.
I ve tried giving full permissions on for /OVS on Server but invain.
Can U pls help me...
Thanks in advance.
Edited by: user10310678 on Sep 16, 2009 3:32 AMuser10310678 wrote:
I am using beta version. Oracle VM Manager 2.2.0If you have a beta version of 2.2, then you should be an Oracle employee. Please ask this question on an internal mailing list. If you are not an Oracle employee, please ask the employee that gave you this beta. As this is a beta, some functionality may not be operational yet, so I can't answer why this particular feature seems not to work. -
Query on using Variables in Oracle Query
Hi
i am new to Oracle, i have tried extracting data from the Oracle Database using the following Query which includes 1 variable SYSDATE_UTS, however when i try to execute the Query i get an error. Please let me know what am i doing wrong and how can i correct it.
Error Message
ORA-06550: line 4, column 1:
PLS-00428: an INTO clause is expected in this SELECT statement
Oracle Query
DECLARE SYSDATE_UTS NUMBER := (sysdate-to_date('19700101','yyyymmdd'))*86400;
BEGIN
SELECT
INCIDENT_NUMBER,
to_date(to_char((1/86400*REPORTED_DATE)+to_date('19700101','yyyymmdd'),'mm/dd/yyyy hh24:mi:ss'),'mm/dd/yyyy hh24:mi:ss') as REPORTED_DATE_TIME,
,GROUP_TRANSFERS
,LAST_MODIFIED_BY
,to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * LAST_MODIFIED_DATE,'mm/dd/yyyy hh24:mi:ss'),'mm/dd/yyyy hh24:mi:ss') as LAST_MODIFIED_DATE
,(to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) as AGE
,CASE
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) BETWEEN 0 AND 1 THEN '0-1 Days'
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * SYSDATE_UTS, 'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) BETWEEN 2 AND 4 THEN '2-4 Days'
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) BETWEEN 5 AND 9 THEN '5-9 Days'
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) BETWEEN 10 AND 19 THEN '10-19 Days'
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) >20 THEN '20+ Days'
ELSE 'UNKNOWN'
END AS AGE_GROUP
FROM IncidentDataBase
and STATUS not in (4,5,6)
and rownum <10;
END;Hi Frank
i am using the following Oracle Version
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
and Quest Toad for Oracle to write and execute the queries:
Toad for Oracle Xpert
Version 10.1.1.8
The code i am using is:
variable SYSDATE_UTS NUMBER;
exec SYSDATE_UTS := (sysdate-to_date('19700101','yyyymmdd'))*86400;
SELECT
INCIDENT_NUMBER,
to_date(to_char((1/86400*REPORTED_DATE)+to_date('19700101','yyyymmdd'),'mm/dd/yyyy hh24:mi:ss'),'mm/dd/yyyy hh24:mi:ss') as REPORTED_DATE_TIME
,GROUP_TRANSFERS
,LAST_MODIFIED_BY
,to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * LAST_MODIFIED_DATE,'mm/dd/yyyy hh24:mi:ss'),'mm/dd/yyyy hh24:mi:ss') as LAST_MODIFIED_DATE
,(to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * :SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) as AGE
,CASE
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * :SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) BETWEEN 0 AND 1 THEN '0-1 Days'
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * :SYSDATE_UTS, 'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) BETWEEN 2 AND 4 THEN '2-4 Days'
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * :SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) BETWEEN 5 AND 9 THEN '5-9 Days'
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * :SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) BETWEEN 10 AND 19 THEN '10-19 Days'
WHEN (to_date(to_char(to_date('01011970','ddmmyyyy')+1/24/60/60 * :SYSDATE_UTS,'mm/dd/yyyy'),'mm/dd/yyyy')) - (to_date(to_char(+to_date('19700101','yyyymmdd')+1/86400*REPORTED_DATE,'mm/dd/yyyy'),'mm/dd/yyyy')) >20 THEN '20+ Days'
ELSE 'UNKNOWN'
END AS AGE_GROUP
FROM IncidentDataBase
WHERE STATUS not in (4,5,6)
and rownum <10;
Notes:
1. When i put the cursor before "variable" (starting of the query) and execute the script i get an Error: ORA-00900: invalid SQL statement.
2. When i put the cursor just before "SELECT" i get a pop up.
a. it is a Toad window which displays the available variables (in this case :SYSDATE_UTS).
b. gives me a dropdown option to select the type (by default VARCHAR2 is selected).
c. there is a value field where i need to enter the value for the Variable.
d. the SQL statement shown in this dilog box does not include the 1st 2 lines
variable SYSDATE_UTS NUMBER;
exec SYSDATE_UTS := (sysdate-to_date('19700101','yyyymmdd'))*86400;
Q: is there something wrong in the syntax i am using?
Sven W. - I have been using your method all these days, which works just fine. i wanted to know how i could use a variable instead.
Business Requirement - My whole intent is to calculate the Age of an incident (Difference between "Reported Date" and current date) and to assign Age Groups (0-1 Days, 2-4 Days,....,20+ Days).
Edited by: 921713 on Mar 19, 2012 12:23 PM -
Can we use different Databases (Oracle & SQL Server) in one report?
Post Author: venki5star
CA Forum: .NET
Hi there.
Can we use different databases (Oracle & SQL Server) in a same report?
If possible how?
Another question,
Can we change the Provider Name at runtime of the given report. If so the above question is useless...
Thanks in Advance.I tried this using Oracle Provider for OLEDB (the one that supplied by Oracle Client) and Crystal Reports 9. you can drag the column into designer but the image does not appear in preview.
I guess it's because CR does not recognized it as image, and there are no information that the blob data is an image at all. -
Using Coherence and Oracle Database as the CacheStore
We are working on implementing a solution using Coherence and Oracle Database as the CacheStore. We initially implemented the Cache as a distributed-scheme which in turn uses the backing-map-scheme. We are trying to introduce transaction management and I used a scheme-ref in a transactional-scheme to point to an already existing distributed-scheme. However when I bring up the server, my custom coherence-cache-config.xml file is not recognized and Coherence comes up with the default setting. Given below is the snippet of my configuration file.
1) I would like to understand why the below configuration doesn’t work and am I doing it the right way? If not, what is the correct way of doing it?
2) There are a multiple transaction management options given in the documentation. Which are the ones that will work with a distributed-scheme and read-write-backing-map-scheme?
3) If transactional-schemes cannot work with distributed-scheme, what is the best way to have a distributed cache with a oracle database as a cache store?
<caching-scheme-mapping>
<cache-mapping>
<cache-name>id<cache-name>
<scheme-name>example-transactional<scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<transactional-scheme>
<scheme-name>example-transactional</scheme-name>
<scheme-ref>distributedcustomcache</scheme-ref>
<thread-count>10</thread-count>
</transactional-scheme>
<distributed-scheme>
<scheme-name>distributedcustomcache</scheme-name>
<service-name>DistributedCache</service-name>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<local-scheme>
<!--scheme-ref>categories-eviction</scheme-ref-->
<scheme-name>inMemory</scheme-name>
</local-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>spring-bean:coherenceCacheStore</class-name>
<init-params>
<init-param>
<param-name>setEntityName</param-name>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<!--refresh-ahead-factor>0.5</refresh-ahead-factor-->
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>Hi,
If you look at the documentation for transactional-scheme here: http://docs.oracle.com/cd/E24290_01/coh.371/e22837/appendix_cacheconfig.htm#BHCIABHA
you will see that it says The transactional-scheme element defines a transactional cache, which is a specialized distributed cache. That means that a transactional-scheme is already a distributed-scheme.
You will see from the same documentation above that there is no way in a transactional-scheme to configure things like cache-stores or listeners or even the backing-map-scheme as these are not supported on a transactional-scheme - so you cannot use a cache store.
Personally I would not use transactional-scheme unless you have some really big reason to do so - the restrictions far outweigh any perceived advantage of having a transaction. There are better ways to build applications so they do not require transactions, that is what we have been doing for years with Coherence so far, and there is no real reason to change that.
JK -
How to find out the Non Partitioned Tables used 2Gb on oracle
Hi team
how to find out the Non Partitioned Tables used > 2Gb on oracle where not is sys & system
regardsheres 1 I made earlier
set pagesize 999
set linesize 132
col owner format a25
col segment_name format a60
select owner,segment_name,segment_type,(bytes/1024/1024)"MB size"
from dba_segments
where owner not in ('SYS','SYSTEM','XDB','MDSYS','SYSMAN') -- edit for taste
and segment_type = 'TABLE'
having (bytes/1024/1024) > 2000
group by bytes, segment_Type, segment_name, owner
order by 4 asc -
How to copy file to another server from database using FTP in oracle
How to copy file to another server from database using FTP in oracle.
Please do the needfaul.Billy Verreynne wrote:
BluShadow wrote:
Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
:) -
Hello
I'm working with Oracle Forms 6i and I need to check if a certain folder exists before I make an action, I think there's no way to do it with Oracle Forms only, so I tough doing it with vba.
Is there some controller that allow me to use vba in Oracle Forms? Or maybe I can do this another way.
ThanksYou can use this piece of code to check if a directory exists:
declare
l_hostcommand varchar2(1000);
l_dir varchar2(200) := 'f:\oracle';
begin
l_hostcommand := 'cmd /c if not exist '||l_dir||' exit 100';
host(l_hostcommand, no_screen);
if form_success then
message('Directory found');
else
message('Directory not found');
end if;
end; If you have no drive mapping, just use UNC (\\server\oracle). -
Error when trying to use LogMiner with Oracle 8.1.6.0.0
Hi everybody,
I'm trying to use LogMiner with Oracle 8.1.6.0.0. When I execute the following code with SQL*Plus, I have an error.
BEGIN
DBMS_LOGMNR.START_LOGMNR
(options =>
dbms_logmnr.dict_from_online_catalog);
END;
The error displayed by SQL*Plus is:
PLS-00302: 'DICT_FROM_ONLINE_CATALOG' must be declared.
Please, how to solve this problem?
Thanks you in advance for your answers.user639304 wrote:
Hi everybody,
I'm trying to use LogMiner with Oracle 8.1.6.0.0. When I execute the following code with SQL*Plus, I have an error.
BEGIN
DBMS_LOGMNR.START_LOGMNR
(options =>
dbms_logmnr.dict_from_online_catalog);
END;
The error displayed by SQL*Plus is:
PLS-00302: 'DICT_FROM_ONLINE_CATALOG' must be declared.
Please, how to solve this problem?
Thanks you in advance for your answers.Looking at the 8.1.7 doc set (the oldest available on tahiti) I get no hits when searching for 'dict_from_online_catalog'. Searching the 9.2 doc set turns up a reference. Looks like you are trying to use an option that isn't available in your version of Oracle. -
Hi,
I am using java and oracle and I want to know the way to achieve the "user-defined variables" functionality of mysql
[http://dev.mysql.com/doc/refman/4.1/en/user-variables.html]
Basically I want my update query/PL-SQL block to first define a variable and then refer it multiple times in the query.I also want to return the number of updated rows to my application code in java
I saw DEFINE variable,bind variables etc,but dont know what exactly should I use
Thanks in advance
AnanthI am looking to use the variables in the query
itself.
Ex: select @t1:=100,@t2:=@t1+10 from tbl_name where
col_name > @t1 and col_name < @t2
[This is a simple ex.I want to use current timestamp
instead of 100 as first variable's value]
Also,as I have mentioned,I need to use these in
update statements also and return the no. of updated
rows to java codeUse Declare on the beginning of a PL/SQL block to declare variable names and types. Then just use them in the code (including update statements) without any prefix (@ is not needed in oracle). As a clear difference from MySQL, you don't need to use select to set a variable value if it does not depend on a query, just use the := operator. To read values from a query into variables, use "select ... into" syntax.
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/selectinto_statement.htm#LNPLS01345
gojko adzic
http://gojko.net
Maybe you are looking for
-
Interactive report on view based on pipelined table function.
Hi, I want to build an Interactive Report on a view. The view definition contains a select on a pipelined table function. I use context functionality to pass paramaters to the pipelined table function. A plain select * from #my_view# in SqlPlus resul
-
External hd using for Mac and Windows
I'm using external free agent drive - seagate, My Mac can access and read and do anything with my drive but when I switch to other computer, it cant recognize my drive...What can I do now to fix it??? - I wanna share files from my drive to other comp
-
Extending isight NEED PRO HELP PLAESE!!! Haven't found answer anywhere yet
ok, I know you guys can do this... c'mon- please help. I am trying to run close to 50-60 feet of firewire over to where my LCD TV is located to power my isight camera from my Mac Mini and am having problems. It was suggested that I buy (5) "IEEE-1394
-
Account Receivable posting methods
Hi; I am looking for various ways to post document for amount received from customer against Invoice and debit memo. Pl. let me know the various ways / transactions for account receivable referring the invoices and debit memos pending for receivables
-
Setting a import job in oracle
Can you tell me where i can find a good documentation that shows how to create a job in orcle. I would like to schedule a task which will run insert scripts everyday...