RE: Oracle schema comparison

2005-06-16 Thread Gold, Samuel (Contractor)
If you have OEM (Oracle Enterprise Manager) with the management packs, there is one called Change Manager. That will allow you to compare two schemas and give you a nice report as well. -Original Message- From: Steve Sapovits [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 11:11

RE: oracle win2k ORA-1222 problems

2005-06-16 Thread Gold, Samuel (Contractor)
Pete, If you are trying to connect to an Oracle 7 database then you need to use the Oracle 9.0 client. Connecting to Oracle 7 from 9.2 is no longer supported. Any version equal to or less than 9.0.1 will work. HTH, Sam Gold -Original Message- From: Hope Peter [mailto:[EMAIL PROTECTED]

RE: random rows

2005-02-14 Thread Gold, Samuel (Contractor)
It depends on what database you are using. It can be done in oracle by SELECT region AVG(amount) FROM sales SAMPLE(5) GROUP BY region; This statement select 5 percent of the data in the sales table. This is from the oracle 8i documentation. Thanks, Sam Gold -Original Message- Fro

RE: can I execute DBMS packages with DBI?

2004-03-18 Thread Gold, Samuel (Contractor)
Yes you can. Here is an example. $sth_tbs_mode = $dbh->prepare("BEGIN SYS.BACKUP.BEGIN_BK(?); END;"); $sth_tbs_mode->execute($tablespace_name); Or you can use do if you are not passing any parameters. $dbh->do("BEGIN SYS.BACKUP.BEGIN_BK('USERS'); END;"); $dbh->do ("ALTER SYSTEM ..."); I

RE: help required for DBI script!

2004-03-12 Thread Gold, Samuel (Contractor)
Hey Marc, Try putting a $sth1->finish(); before you do the next do statement. See your code below, I marked it with *** Try that and see if it helps. Thanks, Sam Gold -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 7:10 AM To: [EMAIL P

RE: DBI with ORACLE encryption

2004-03-12 Thread Gold, Samuel (Contractor)
I would go with the latest and greatest. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 12:50 AM To: Gold, Samuel (Contractor); [EMAIL PROTECTED] Subject: RE: DBI with ORACLE encryption Hi, We have tried this way of connecting as

RE: varchar2 4000

2004-03-10 Thread Gold, Samuel (Contractor)
I had no problems inserting a string of 4000 numbers or characters into a varchar2(4000). -Original Message- From: Bretz, Ellen [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 10:56 AM To: [EMAIL PROTECTED] Subject: varchar2 4000 Is anyone having trouble inserting or updating

RE: Oracle Direct Pass

2004-02-26 Thread Gold, Samuel (Contractor)
If you don't have to manipulate any of the data then SQL*Loader is the way to go. If you have to do any sort of manipulation of the data then it is very difficult to use SQL*Loader. Personally I user perl to load my data because I have to format some of the data and replace some of the values. It

RE: Hello

2004-01-29 Thread Gold, Samuel (Contractor)
The message I received was removed by MailSweeper. I know that there is a new virus called Mydoom.B that is going around. Here is what I found on Symantec's site. [EMAIL PROTECTED] is a mass-mailing worm that arrives as an attachment with the file extension .bat, .cmd, .exe, .pif, .scr, or .zip.

RE: Oracle dbi ?

2003-11-11 Thread Gold, Samuel (Contractor)
I have called oracle and ask them if they would provide the shutdown functionality in OCI and there answer was no. The reason they gave was: "OCI does not provide the functionality to start and stop the database. Doing so requires access to a lower level API which is not exposed to OCI." That is

RE: ORA-01031 when trying to connect as sysdba. sqlplus works

2003-09-08 Thread Gold, Samuel (Contractor)
This is caused by the user executing the script not being part of the dba group. ORA-01031 is insufficient privileges. Who ever is executing the script needs to be part of the dba group or osdba group. HTH. Thanks, Sam Gold -Original Message- From: Baras, Gal [mailto:[EMAIL PROTECTE

RE: DBD SQL parser failing?

2003-08-10 Thread Gold, Samuel (Contractor)
I would check your date that you are inserting, it could be expecting a different format. What is you NLS_DATE_FORMAT set to? Here is the output from oerr. oerr ora 1858 01858, 0, "a non-numeric character was found where a numeric was expected" // *Cause: The input data to be converted using

RE: follow up with oracle linked tables

2003-07-18 Thread Gold, Samuel (Contractor)
o. Is the two_task environmental variable set? You may also >want to try using >DBI->trace and see what that gives you. > > >Thanks, >Sam Gold > > >-Original Message- >From: Ian Harisay [mailto:[EMAIL PROTECTED] >Sent: Friday, July 18, 2003 2:58 PM

RE: Running Stored Queries

2003-06-27 Thread Gold, Samuel (Contractor)
look for stored procedures in the perl docs. Here is an example. $sth_tbs_mode = $dbh->prepare("BEGIN SCOTT.BACKUP.BEGIN_BK(?); END;"); where Scott is the owner of the package. the package name is backup and the procedure is begin_bk. Thanks, Sam Gold -Original Message- From: Ronni

RE: Can't build DBD::Oracle on AIX 5.1 with Oracle 9.2

2003-06-17 Thread Gold, Samuel (Contractor)
Yes, use the 32-bit oracle libraries. I will forward a previous post on this issue. Thanks, Sam Gold -Original Message- From: Rafael Caceres [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 6:54 PM To: [EMAIL PROTECTED] Subject: Can't build DBD::Oracle on AIX 5.1 with Oracle 9.2

RE: administrative commands for oracle

2003-06-10 Thread Gold, Samuel (Contractor)
I am pretty sure that it is only sql statements. I used a package to issue commands like alter tablespace begin backup and the like. -Original Message- From: Wolf, Dr. Stefan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 8:17 AM To: '[EMAIL PROTECTED]' Subject: administrative comm

RE: Oracle connect internal/OS authentification

2003-06-06 Thread Gold, Samuel (Contractor)
9:16 AM To: Gold, Samuel (Contractor) Cc: 'Alan Burlison'; Andy Hassall; Christian Merz; [EMAIL PROTECTED] Subject: Re: Oracle connect internal/OS authentification So do you all think that setting ora_session_mode to ORA_SYSDBA should force the password to be non-null? Tim. On Fri, Jun 06

RE: how to define env variables in perl script?

2003-06-06 Thread Gold, Samuel (Contractor)
I have used code like this: use DBI; use Env; use strict; # Make sure that the environmental variables are undefined. # undef $ENV{ORA_SID}; undef $ENV{ORACLE_SID}; # # Defing the environmental variables. # $ENV{ORA_SID} ='test'; $ENV{ORACLE_SID} =$ENV{ORA_SID}; I have had no issues connecting t

RE: Oracle connect internal/OS authentification

2003-06-06 Thread Gold, Samuel (Contractor)
Very interesting. -Original Message- From: Alan Burlison [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 8:16 PM To: Andy Hassall Cc: Christian Merz; [EMAIL PROTECTED] Subject: Re: Oracle connect internal/OS authentification Hmm, this seems to work for me as well (on Solaris)

RE: DECODE in(DBI)

2003-06-06 Thread Gold, Samuel (Contractor)
Have you tried to run your sql statement in sqlplus? Does it work there? Thanks, Sam Gold -Original Message- From: deadtwoU wishUknew [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:01 PM To: Ronald J Kimball; deadtwoU wishUknew Cc: [EMAIL PROTECTED] Subject: Re: DECODE in(DB

RE: Oracle connect internal/OS authentification

2003-06-06 Thread Gold, Samuel (Contractor)
tell me about it. :) -Original Message- From: Alan Burlison [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:32 PM To: Gold, Samuel (Contractor) Cc: 'Christian Merz'; [EMAIL PROTECTED] Subject: Re: Oracle connect internal/OS authentification Gold, Samuel (Contrac

RE: Oracle connect internal/OS authentification

2003-06-05 Thread Gold, Samuel (Contractor)
, June 05, 2003 9:17 AM To: Gold, Samuel (Contractor) Cc: 'Christian Merz'; [EMAIL PROTECTED] Subject: Re: Oracle connect internal/OS authentification Gold, Samuel (Contractor) wrote: > Sorry, but there is no way. / as sysdba is a SQL*Plus specific command. I > opened a tar with oracle

RE: Oracle connect internal/OS authentification

2003-06-05 Thread Gold, Samuel (Contractor)
Sorry, but there is no way. / as sysdba is a SQL*Plus specific command. I opened a tar with oracle on the issue of being able to connect / as sysdba and using OCI to shutdown the database like the shutdown command in SQL*Plus. They told me that neither could be done. I created a user with very s

RE: LIKE and Variable Binding

2003-05-29 Thread Gold, Samuel (Contractor)
I believe you have to you use it like this: $q = qq |select * from x where y LIKE ?|; upper casing the LIKE. HTH, Sam Gold -Original Message- From: Thomas Good [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 12:32 PM To: DBI Users Subject: LIKE and Variable Binding Hi, how doe