Trigger question

2004-01-30 Thread roland . skoldblom
Hallo,

I would like to write the code to atrigger that makes insert into another table inly 
if there is the condition

PREFERED_NUMBER = 1 and TELEPHONE_TYPE_ID in (1,2, 5)


How can write this in a simple way?

Thanks in advance.

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Nextval in trigger

2004-01-26 Thread roland . skoldblom
Hallo,

I would like to make an insert statement into a table in atrigger, Iam trying to do:

Insert into system_change values(system_change_id.nextval) but it gives  me an error 
message which tells me that I havent declared any sequence. How can I fix this ?


Thanks in advance.

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Trigger, how?

2004-01-23 Thread roland . skoldblom
Hallo all,

Anyone whom know how to write the trigger if you just want a trigger to  be fired if 
only two fields in a table is changed, not all of them?

Any good example?

Thanks in advance

Roland








-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Trigger question

2004-01-22 Thread roland . skoldblom
Hallo everyone,

I have the table system_change

and I I have the insert statement here below  be run when there is an update or insert 
 of a value in any ofthe fields

ORGANIZATION_NUMBER
LEGAL_NAME
COMPANY_FORM_ID
ORDER_STOP

in table COMPANY


insert into system_change
values(system_change_id.nextval, 1, null,null, null, null, null, 1, SYSDATE, 1, 
SYSDATE,1 )


How can I write the code in the easiest way?

Thanks in advance


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Trigger question

2004-01-22 Thread roland . skoldblom
Hallo,

I have the table system_change

and I I have the insert statement here below  be run when there is an update or insert 
 of any of the fields

ORGANIZATION_NUMBER
LEGAL_NAME
COMPANY_FORM_ID
ORDER_STOP

in table COMPANY

The script bo be run is this one:

insert into system_change
values(system_change_id.nextval, 1, null,null, null, null, null, 1, SYSDATE, 1, 
SYSDATE,1 )


How can I write the code in the easiest way?

All help is appreciated!


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Sql question

2004-01-07 Thread roland . skoldblom
Hallo,

I have this sql query. I would like to change it  so I could pick out the three forst 
three charachters in the between statements.  How can I do that in the most simply way?

and vgr in (between 101 and 101)
  and vgr in (between 104 and 104)  order by Avdnr ,Datum1

in the statement above I woul dlike to do the changing,

select substr(Avdnr,2) Avdnr , Dato Datum1,  Dato datum2 , lpad(vgr,3) VGRP from 
kunlin A where transfil_id in
 (select transfil_id from transfil_dag where avdnr between 20 and 29 and dato 
between to_date
  ('2003-12-07','-mm-dd') and to_date ('2003-12-07','-mm-dd'))

  and vgr in (between 101 and 101)
  and vgr in (between 104 and 104)  order by Avdnr ,Datum1




Thanks in advance


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Unix question

2003-12-22 Thread roland . skoldblom
Hallo all of you,

Is there anyone whom could help me with the unix command how to find all rows , that 
doesnt exists try in a file.

I mean how to find all rows which doesnt have the characters try in.

Maybe this is too simple, but would appreciate anyone whom could give me some quick 
help.

Thanks in advance

Roland






-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Question about pl/sql

2003-11-10 Thread roland . skoldblom
Hallo,

I am trying to create this statement but dont get it work. I would like to check if a 
field information from table one exists in table 2, and if that exists in table 2, 
then procedure test_proc would run,

Please help me with this.

Thanks in advance


Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Pl/SQL-statement

2003-11-10 Thread roland . skoldblom
Hallo,

I would like to do the following with an sql( pl/sql) statement.

I have table1 and table2 andtable3.

I want to check whether field1 in table1 exists in table3. If so then I want an insert 
statement to be run...insert into table3.
 If it doesnt find that value then th escript will go to table2 and check if the 
vaules exists in that table, if it finds it then I want another insert statement to be 
run.

Please help me with an easy example, i dont know if this is so simply but I cantget it 
right though.


Thanks


Roland








-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Datatypes

2003-11-06 Thread roland . skoldblom
Hallo,

I have  a table, A: IMPEXCEL_EANNR

which contains the field IMP_PRIS(= price)

It looks like this:

12
1,50
11



This is a varchar2 field in this table. I want that field values to be inserted(or 
rather update the other table ) in other table called VARUKORGEANREL, but field in 
which the prices are goingto be inserted to is a NUMBER(15,5) field.

I am trying to use this sql but the result  I get is:

0,12
1,50
0,11

The right prices to be inserted would be
12
1,50
11

What is wrong with this sql?


   UPDATE PBK.VARUKORGEANREL SET (
   PRIS) =
 (SELECT Distinct to_number ( 
substr(pbk.impexcel_eannr.IMP_PRIS,1,(instr(pbk.impexcel_eannr.IMP_PRIS,',')-1))||'.'||
 
substr(pbk.impexcel_eannr.IMP_PRIS,(instr(pbk.impexcel_eannr.IMP_PRIS,',')+1),length(pbk.impexcel_eannr.IMP_PRIS)))
   FROM PBK.impexcel_eannr
   WHERE PBK.VArukorgeanrel.ean = PBK.impexcel_eannr.EANNUM)
   WHERE PBK.varukorgeanrel.varukorgid = inVarukorgId;




Thanks in advance





Roland



















-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Datatype conversion

2003-11-06 Thread roland . skoldblom
Hallo,

I have  a table, A: IMPEXCEL_EANNR

which contains the field IMP_PRIS(= price)

It looks like this:

12
1,50
11



This is a varchar2 field in this table. I want that field values to be inserted(or 
rather update the other table ) in other table called VARUKORGEANREL, but field in 
which the prices are goingto be inserted to is a NUMBER(15,5) field.

I am trying to use this sql but the result  I get is:

0,12
1,50
0,11

The right prices to be inserted would be
12
1,50
11

What is wrong with this sql?


   UPDATE PBK.VARUKORGEANREL SET (
   PRIS) =
 (SELECT Distinct to_number ( 
substr(pbk.impexcel_eannr.IMP_PRIS,1,(instr(pbk.impexcel_eannr.IMP_PRIS,',')-1))||'.'||
 
substr(pbk.impexcel_eannr.IMP_PRIS,(instr(pbk.impexcel_eannr.IMP_PRIS,',')+1),length(pbk.impexcel_eannr.IMP_PRIS)))
   FROM PBK.impexcel_eannr
   WHERE PBK.VArukorgeanrel.ean = PBK.impexcel_eannr.EANNUM)
   WHERE PBK.varukorgeanrel.varukorgid = inVarukorgId;




Thanks in advance



Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Question about datatypes

2003-11-03 Thread roland . skoldblom
Hallo,

Maybe this sounds simple for all of you, but I have a table with the field PRICE and 
that is with datatype varchar2 I want the data in that field to be inserted in another 
table with  field PRICE, but that field has the datatype NUMBER. How can I
deasiest do this sql statement?

I really have to have the Varchar dataype in table1.

Thanks in advance

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


datatypes varchar to number

2003-11-03 Thread roland . skoldblom
Hallo,

Maybe this sounds simple for all of you, but I have a table with the field PRICE and 
that is with datatype varchar2 I want the data in that field to be inserted in another 
table with  field PRICE, but that field has the datatype NUMBER. How can I
deasiest do this sql statement?

I really have to have the Varchar dataype in table1.

Thanks in advance

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


RE: datatypes varchar to number

2003-11-03 Thread roland . skoldblom

In the varchar2(30) field PRICE , table1 it looks like this

PRICE

12,50
37,50


The datype in table 2 is for that field NUMBER(7,2)

Hope this would be  of anyhelp

Rolabd







   

  Mark Leith 

  [EMAIL PROTECTED]To:   Multiple recipients of list 
ORACLE-L [EMAIL PROTECTED]   
  co.uk   cc: 

  Sent by: Subject:  RE: datatypes varchar to 
number   
  [EMAIL PROTECTED]

  .com 

   

   

  2003-11-03 12:24 

  Please respond to

  ORACLE-L 

   

   





What's the data like in the varchar field? Is it in number format? A quick
sample would be good.



-Original Message-
[EMAIL PROTECTED]
Sent: 03 November 2003 11:14
To: Multiple recipients of list ORACLE-L


Hallo,

Maybe this sounds simple for all of you, but I have a table with the field
PRICE and that is with datatype varchar2 I want the data in that field to be
inserted in another table with  field PRICE, but that field has the datatype
NUMBER. How can I
deasiest do this sql statement?

I really have to have the Varchar dataype in table1.

Thanks in advance

Roland


--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mark Leith
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).





-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Datatype conversions

2003-11-03 Thread roland . skoldblom
Hallo,

Maybe this sounds simple for all of you, but I have a table with the field
PRICE and that is with datatype varchar2 I want the data in that field to be
inserted in another table with  field PRICE, but that field has the datatype
NUMBER. How can I
easiest do this sql statement?

In the varchar2(30) field PRICE , table1 it looks like this

PRICE

12,50
37,50


The datype in table 2 is for that field NUMBER(7,2)


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Re: Question about datatypes

2003-11-03 Thread roland . skoldblom

Yes but how should I write the sql statement when to make the incoming varchar2 field 
into a number?

Roland


   

  Mladen Gogala

  [EMAIL PROTECTED]To:   Multiple recipients of list 
ORACLE-L [EMAIL PROTECTED]   
  .netcc: 

  Sent by: Subject:  Re: Question about datatypes  

  [EMAIL PROTECTED]

  .com 

   

   

  2003-11-03 13:19 

  Please respond to

  ORACLE-L 

   

   





Trigger using TO_NUMBER function would be the first thing that comes to mind.
I have designs like that, which are used for parsing so calld Bloomberg
files. Those files contain strings like N.A., -,|| ('|' is the field
delimiter) and all of those strings mean NULL. Also, stock split ratio can
be described as: 1:2, 1/2, 2 for 1, 0.5, which has to be mapped to a
number field. I'm using perl to parse the input files and I'm using crontab to
schedule perl script exectuion.

On 2003.11.03 05:14, [EMAIL PROTECTED] wrote:
 Hallo,

 Maybe this sounds simple for all of you, but I have a table with the field
 PRICE and that is with datatype varchar2 I want the data in that field to be
 inserted in another table with  field PRICE, but that field has the datatype
 NUMBER. How can I
 deasiest do this sql statement?

 I really have to have the Varchar dataype in table1.

 Thanks in advance

 Roland


 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 --
 Author:
   INET: [EMAIL PROTECTED]

 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
 the message BODY, include a line containing: UNSUB ORACLE-L
 (or the name of mailing list you want to be removed from).  You may
 also send the HELP command for other information (like subscribing).


--
Mladen Gogala
Oracle DBA
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mladen Gogala
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).





-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Question about sql

2003-10-16 Thread roland . skoldblom
Hallo,

Anyone whom could gíve me some good help on this.

I have a table with one field, called Company_id
Like this

   Company_id

  16
  45
  50


In table 2 I have this field and values:

Company_id  Lev_idVare_id

  16  45  56
  34  10  20
  67  10  20
  45  15  30
  50  12  12

I would like to from table 2 do a select and find the Company_ids from table1 and find 
out the responding lev_id and vare_id in table2and then insert them into a new 
table(table3) so it would look like this:

Company_idLev_idVare_id
1645  56




Anyone whom could give me some help on this how to write the sql- query.

I have tried with this sql query. What is wrong?

insert into table3(company_id,lev_id,vare_id)
select company_id,lev_id,vare_id from table2 where vare_id = 56
(where exists select  company_id  from table1)


Thanks in advance



Roland















-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Questiuon about unix

2003-10-02 Thread roland . skoldblom
Hallo everybody,

anyone whom can tell me what the command  is to search for an empty field in a unix 
file.

for instance if you want to find the empty spacelines if some lines looklike:

1;100;Name;;
2;200;Test;45;
3;300;Name;;

I would like to find out line nr 1 and 3 here above. Anyone whom could suggest any 
good?




Maybe this sounds simple but I have tried with /;; and cant find it. If iI use that 
command then I will get lines with ;; and i just want lines with two ;;

Thanks in advance


Roland











-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


logg error line in unix

2003-10-02 Thread roland . skoldblom
Hallo again,

I would like to get some help on this.
 I have a script called let us say test.sh and that script runs an sqlloader script, 
which loads semicolonseparated data into an oracle table.
I would like to have an example on how to log an error when trying to insert the data 
intothe table.
I want the error to be both the error message and also tell me which line that is 
wrong in the file.

So both errormessage and also complete line which is the error line.


Thanks in advance


Roland




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


RE: logg error line in unix

2003-10-02 Thread roland . skoldblom

Please give me an example on this.


Roland





   

  Jack van Zanen   

  [EMAIL PROTECTED]To:   Multiple recipients of list 
ORACLE-L [EMAIL PROTECTED]   
  S.NLcc: 

  Sent by: Subject:  RE: logg error line in unix   

  [EMAIL PROTECTED]

  .com 

   

   

  2003-10-02 15:54 

  Please respond to

  ORACLE-L 

   

   





Bad records go to bad file
Logfile can be turned on with log parameter

Jacob A. van Zanen
Oracle DBA
Quant Systems Europe b.v.
Tel : +31 (0) 251 - 268 268
Mobile: +31 (0) 6 51308813
Fax: +31 (0) 251 - 268 269
E-mail: mailto:[EMAIL PROTECTED]
Visit our web site at http://www.quantsystems.nl/



-Original Message-
Sent: Thursday, October 02, 2003 3:35 PM
To: Multiple recipients of list ORACLE-L


Hallo again,

I would like to get some help on this.
 I have a script called let us say test.sh and that script runs an sqlloader
script, which loads semicolonseparated data into an oracle table. I would
like to have an example on how to log an error when trying to insert the
data intothe table. I want the error to be both the error message and also
tell me which line that is wrong in the file.

So both errormessage and also complete line which is the error line.


Thanks in advance


Roland




--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the
message BODY, include a line containing: UNSUB ORACLE-L (or the name of
mailing list you want to be removed from).  You may also send the HELP
command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jack van Zanen
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).





-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Cron question

2003-09-16 Thread roland . skoldblom
Hallo,

anyone whom could help me with this.

I am trying to use crontab -e to start a procedure. but I cant get it right.

Anyone whom could help me with the command how to write if I want a program in unix to 
be scheduled to run
every monday at 6 o´clock in the morning?

Thanks in advance.

Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Question about unix

2003-09-12 Thread roland . skoldblom
Hallo everyone,

I have a unix question, hope you can help me. Maybe this is too simple but would 
appreciate any help.

I would like to rename the files 
konkurrenter.txt.1,konkurrenter.txt.,,konkurrenter.txt.3 to be renamed to 
konkurrenter.txt at the same time.
So the result would be 3 files, every one of them would be named konkurrenter.txt

cp konkurrenter.txt.* konkurrenter.txt


Hope anyone could help me.


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


How to give permission

2003-09-12 Thread roland . skoldblom
Hallo,

anyone whom could help me with a unix command how to
give permission to delete files from a special directory?

I am trying to use chmod command but it doesnt work with chmod 755
It says permission denied then.

Thanks in advance

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Sqlloader question

2003-09-11 Thread roland . skoldblom
Hallo,

Anyone whom could tell me if it is in an sqlloader possible to write for instance this 
if you dont know the exactly name of file.
infile '/d31/datafiler/sema/incoming/konkurrenter.*'

If there are going to be files with different extensions fo rinstance the first time a 
file is going to be inserted will be konkurrenter.txt.1
and the next time the file will have the name konkurrenter.txt.2 etc.

How should I handle this?

Thanksin advance

Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Sql loader

2003-09-11 Thread roland . skoldblom
Hallo,

Anyone whom could tell me if it is in an sqlloader possible to write for instance this 
if you dont know the exactly name of file.
infile '/d31/datafiler/sema/incoming/konkurrenter.*'

If there are going to be files with different extensions fo rinstance the first time a 
file is going to be inserted will be konkurrenter.txt.1
and the next time the file will have the name konkurrenter.txt.2 etc.

How should I handle this?

Thanks in advance

Roland




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Question about Constraint

2003-08-29 Thread roland . skoldblom
Hallo,

I would like to gets ome help on this:

I have this table

IdCompanynumber First Name  LastNameType

1 123   Jim Andersson   1
2 234   Tom Perkins   2
3 565   Henry   Ford1


I would like to have a constraint so when I try to add and the same companynumber that 
already exists(for instance 234)
I am not allowed to do this if the filed Type has the value 1.
So if I add a companynumber which already exists and the Type is 2, then I should be 
allowed to add this companynumber.

Maybe this is simple but woul dreally appreciate some help onhow to write this.

Roland




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Exact fetch

2003-08-22 Thread roland . skoldblom
Hallo,

anyon who can tell me whatthis mean`? I get it while I am trying to load some data in 
some tables?

ORA-01422: exact fetch re
  turns more than requested number of rows


Thanks in advance


Roland S






-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Question about cursors

2003-08-15 Thread roland . skoldblom
Hallo,

I would like to get a goood example on how to do this in a pl/sql block,  maybe this 
is too simple but I cant get it work.

I would like to  do a select from table A, like this

select  id from A
where id  10

This sql statement gives me about 10 rows. I want those rows(the id) to be inserted in 
a table called A.
I woul dlike to use variables to store al the id's that the sql gets me.

so the values to be inserted in the table should be for instance

11
12
13
14
15
16
17
18
19
20


How can I do this, using a cutsor I guess. Please give me an example.

Thanks in advance


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Question about sql

2003-07-09 Thread roland . skoldblom
Hallo,

I would like to pick out distinct both of the field Code and Id from this sql 
statement? Anyone who has an example of this?
Maybe this sounds simple but really appreciate somehelp.

I have this query,

Select code, id, name, address, city, year,
 and would as told like to have distinct of both  code and id field.


Thanks in advance.

Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Create index script in pl/sql

2003-06-05 Thread roland . skoldblom
Hallo all,

anyone whom could help me with this:

I would like to have an example of pl/sql procedur which does the following:

CREATE INDEX ART_HIERARKI_LOCKEDIX1 ON
  ART_HIERARKI_LOCKED(SELSKAP, SETT_ID, VGRP, ART_GRP, ART_UGRP)
  TABLESPACE PBKIX PCTFREE 10  STORAGE(INITIAL 65536 NEXT  PCTINCREASE  )
;

CREATE UNIQUE INDEX PK_ART_HIERARKI_LOCKED ON
  ART_HIERARKI_LOCKED(SELSKAP, SETT_ID, ARTNR)
  TABLESPACE PBKIX PCTFREE 10  STORAGE(INITIAL 65536 NEXT  PCTINCREASE  )

So the pl/sql procedur should create those 2 indexesd, how can I write the pl/sql code 
then?


Thanks in advance


Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Anyone whom could explain this?

2003-04-03 Thread roland . skoldblom
Hallo,

anone whom could explain what new. means
in this pl/sql procedure.

for instance: new.kundeoms := new.kundeoms + (in_diff);
  new.mva := new.mva + (in_diff_mva);

How do I get hold of it so i can see which sql it runsor is new.kundeoms just a value 
from a table?





PROCEDURE add_kundeoms(in_diff in number, in_diff_mva in number,
   in_diff_brtkr in number, in_flagg in varchar2) 
IS
lDetaljFunnet boolean;
  BEGIN

IF  in_flagg = '0' THEN
  new.kundeoms := new.kundeoms + (in_diff);
  new.mva := new.mva + (in_diff_mva);
  new.kostverdi := new.kostverdi + (in_diff - in_diff_mva - 
in_diff_brtkr);
ELSIF in_flagg = '1' THEN
  new.utg_pant := new.utg_pant + (in_diff);
ELSIF in_flagg = '9' THEN
  new.shop_in_shop := new.shop_in_shop + (in_diff);
ELSIF   in_flagg = '5' THEN
  new.rest_oms := new.rest_oms + (in_diff);
END IF;

BEGIN
  db_dagoms_detalj.find(new.dagoms_id, in_flagg);
  lDetaljFunnet := TRUE;
EXCEPTION
  WHEN OTHERS THEN
lDetaljFunnet := FALSE;
END;
IF lDetaljFunnet THEN
  db_dagoms_detalj.edit;
  db_dagoms_detalj.add_kundeoms(in_diff, in_diff_mva, in_diff_brtkr);
  db_dagoms_detalj.modify;
  db_dagoms_detalj.close;
END IF;
  END;
END;


Thanks in advance






Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



What is wrong with this?

2003-03-26 Thread roland . skoldblom
Hallo,

I have this sequence,





CREATE SEQUENCE SYS_STORE_ID
START WITH 1
INCREMENT BY 1
NOMAXVALUE
NOCYCLE
CACHE 10;


I am trying to run this script,




sys_store_id.nextval:

but get this errormessage:

unknown command beginning SYS_STORE_... - rest of line ignored.


How can I solve this problem?

Thanks in advance

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Unix command

2003-03-25 Thread roland . skoldblom
Any one whom could help me with grep command.

I would like to catch all files in a directory which ends with .txt

The files in the directory that fits that condition is:

ia123456.txt
ia654321.txt



How should I write the unix command?

Thanks in advance

Roland






-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Questions about constraints

2003-03-19 Thread roland . skoldblom
Hallo,

I get this errormessage while inserting to this table. How can I check this constraint 
problem? Any wrong with the table definition


9.03.2003 09:46:38   Db_Transfil.AVSTEM - ORA-2: db_filtype_ik.AVS
  TEM: - ORA-2: db_filtype_ik:OVERFOR_TIL_KUN:
  -  ORA-2: SKRIV_kuponghod_TMP1: - ORA-1:
   unique constraint (A172421.KUPONGHOD_TMP1_PK) vio
  lated


CREATE TABLE KUPONGHOD_TMP1 (
  KUNHOD_TMP1_ID  VARCHAR2 (15)  NOT NULL,
  TRANSFIL_ID NUMBER (10)   NOT NULL,
  AVDNR   NUMBER (6)NOT NULL,
  KUNDEID NUMBER (16),
  KASSERERID  NUMBER (6)NOT NULL,
  KASSEID NUMBER (10)   NOT NULL,
  BONGID  NUMBER (11)   NOT NULL,
  DATODATE  NOT NULL,
  CONSTRAINT KUPONGHOD_TMP1_PK
  PRIMARY KEY ( KUNHOD_TMP1_ID )
USING INDEX
 TABLESPACE INNTEMPIX PCTFREE 10
 STORAGE ( INITIAL 1024K NEXT 1024K PCTINCREASE 0 ))
   TABLESPACE INNTEMP
   PCTFREE 10
   PCTUSED 40
   INITRANS 1
   MAXTRANS 255
  STORAGE (
   INITIAL 1048576
   NEXT 1048576
   MINEXTENTS 1
   MAXEXTENTS 505
   FREELISTS 1 FREELIST GROUPS 1 )



Thanks in advance

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Force to use a tablespace

2003-03-19 Thread roland . skoldblom
Hallo,

anyone who knows how to force a table to use  a special tablespace?

Thanks in advance.

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ftp command

2003-03-17 Thread roland . skoldblom
Hallo,

anyone whom can tell me how to write ftp command to connect to a port at an ip-address?

Thanks in advance


Roland S


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Sql query

2003-02-05 Thread roland . skoldblom

I have  this sql query. I am wondering why this query takes so long time, Do I need 
more conditions to make it run, or it it just that this query take so long time to 
run? Anything wrong with the query?

Please help me with this.

 SELECT distinct PBK.VARUKORGEANREL_ULAG.ean, 0, 0, 0, rik2.vare.varenavn, 
rik2.vare.str, PBK.VARUKORGEANREL_ULAG.lagstapris, rik2.vare.hylletxt2, 
rik2.art_hierarki.vgrp, rik2.hierarki_tekst.tekst, '0', '0', 0, pbk.underlag.period,
'rsm',pbk.sortiment_vgrp.sortiment,rik2.art_hierarki.art_grp,rik2.art_hierarki.art_ugrp
 FROM PBK.UNDERLAG, PBK.VARUKORGEANREL_ULAG, rik2.vare, rik2.hierarki_tekst, 
rik2.art_hierarki, pbk.sortiment_vgrp
 WHERE PBK.underlag.underlagid=1100
 AND PBK.underlag.varukorgid=PBK.varukorgeanrel_ulag.varukorgid
 AND PBK.VARUKORGEANREL_ulag.varutyp=0;


Thanks in advance


Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Delete duplicate records

2003-01-08 Thread roland . skoldblom

Hallo,

I have this sql,

SELECT * FROM varukorgtmp
where varukorgid= 120 That makes the result of this testfile.xls


(See attached file: start.xls)

There are two values in EAN-field, which are the same
23324614 in row 2 and 3

Now I want in an sql script to check out which are the duplicates of EAN in that 
table. Then then the script will check which is VARUTYP = 3, then delete the record(s) 
which have VARUTYP =3.

So the result should be like this, with only two rows left in this case).


(See attached file: result.xls)

I would really appreciate if anyone could help me with this sql  I have tried several 
sql, but with no luck.

Thanks in advance

Roland



start.xls
Description: application/msexcel


result.xls
Description: application/msexcel


How to delete duplicate records with condition

2003-01-07 Thread roland . skoldblom
Hallo,

I have this sql,

SELECT * FROM varukorgtmp
where varukorgid= 120 That makes the result of this testfile.xls


(See attached file: start.xls)

There are two values in EAN-field, which are the same
23324614 in row 2 and 3

Now I want in an sql script to check out which are the duplicates of EAN in that 
table. Then then the script will check which is VARUTYP = 3, then delete the record(s) 
which have VARUTYP =3.

So the result should be like this, with only two rows left in this case).


(See attached file: result.xls)

I would really appreciate if anyone could help me with this sql  I have tried several 
sql, but with no luck.

Thanks in advance

Roland












start.xls
Description: application/msexcel


result.xls
Description: application/msexcel


Delete duplicate records with condition

2003-01-07 Thread roland . skoldblom

Hallo,

I have this sql,

SELECT * FROM varukorgtmp
where varukorgid= 120 That makes the result of this testfile.xls


(See attached file: start.xls)

There are two values in EAN-field, which are the same
23324614 in row 2 and 3

Now I want in an sql script to check out which are the duplicates of EAN in that 
table. Then then the script will check which is VARUTYP = 3, then delete the record(s) 
which have VARUTYP =3.

So the result should be like this, with only two rows left in this case).


(See attached file: result.xls)

I would really appreciate if anyone could help me with this sql  I have tried several 
sql, but with no luck.

Thanks in advance

Roland



start.xls
Description: application/msexcel


result.xls
Description: application/msexcel


Anyone knowing about Unix groups

2002-11-28 Thread Roland . Skoldblom
Hallo,

anyone whom knows about any website where you can ask questions about unix and 
shell-programming?

Thanks in advance.

Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Ltrim?

2002-11-22 Thread Roland . Skoldblom
Hallo,
Anyone whom could help me how to write in cron when
scheduling the start of a unixprogram.

I would like that the unix script will run every monday on 6 am.

I have tried but it fails. Any suggestions, please help

Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Count rows in textfile

2002-07-03 Thread Roland . Skoldblom

Anyone whom has a good example on how to check how many rows (without opening the 
file) does a text file consists of?
What is the command?


Thanks in advance


Roland




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Unix - scheduling

2002-07-02 Thread Roland . Skoldblom

Hallo,

anyone who has a good example on how to write in the crontab if you want to schedule a 
job to run every four week.
Is it possible to do that in unix cron job schedule.

Thanks in advance


Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



SQLLOADER - please help

2002-07-01 Thread Roland . Skoldblom

Hallo, anyone whom can help me with this:

I am running sqllodaer and gets this errormessage in the log:

Record 18729: Rejected - Error on table RIK2.IMP_NIELSEN, column MONTH_DISTR_W
Column not found before end of logical record (use TRAILING NULLCOLS)
ORA-01631: max # extents (20) reached in table RIK2.IMP_NIELSEN

What  does that mean and how can I change this ctl file,



(See attached file: nielsen.ctl)

Thanks in advance

Roland





nielsen.ctl
Description: Binary data


Sql query

2002-06-26 Thread Roland . Skoldblom

Hallo,

anyone whom can give me an example on how to pick out field id and name from table one 
and get only the id's  that exists in table one doesnt exist in table2.

Thanks in advance

Roland




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Question about sql loader - help

2002-06-19 Thread Roland . Skoldblom

Hallo all you gurus,

I have a question:

Is it possible that  every time the sql loader script runs change the field names to 
the field names specified in the file to be loaded.: The field names should be 
different dates.

The next time the script sqlloader run sit will be a new field name, which means a new 
date as the field name.
Any one who can give me some help and an example of a control file which does this 
thing.

Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Pl/Sql renaming columns

2002-06-19 Thread Roland . Skoldblom

Hallo,

Anyone who has any good hint on how to write pl/sql if i wantto chang ethe name
 of the fields everytime the procedur runs?
The field names should be 1-JULI-2002 the first time the procedur runs, the next time 
the procedur runs the name of procedur should be 1-AUG-2002 etc.
Please help me with this.

I have tried to look in the manual, but cant find any clue.

Thanks in advance

Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Sql loader question

2002-06-11 Thread Roland . Skoldblom

Hallo
I am running this script but gets this errormessage: Why is it so?
I get the errormessage

 The system cannot find the file specified.(I:dvh\tuppy.txt)

but this file really exists: What is wrong. I include the textfile and also the ctl 
file.

(See attached file: nielsen.ctl)(See attached file: Tuppy.txt)

please check the files and see what is wrong.

Thanks in advance


Roland









nielsen.ctl
Description: Binary data


Tuppy.txt
Description: Text - character set unknown


Textfile into oracle

2002-06-06 Thread Roland . Skoldblom

Hallo,

I have this excelfile. Is it possible to import this into an oracle table. This file 
is supposed to be located on unix machine from the beginning and the import into an 
oracle table would be done from unix. How should I name the fields in the oracle
table. I mean should I use the 9-10 different field names in the excelfile.  There is 
at least 100 different columns in this excelfile. Is it possible to import a file like 
that into oracle table,

Please help me with some hints.
(See attached file: try.xls)

Thanks in advance

Roland



try.xls
Description: Excel 2.x Chart


Ang: Re: Textfile into oracle

2002-06-06 Thread Roland . Skoldblom


Could anyone please give me  an example on how the sqlloader script would look like , 
How many fields would it be,?  I cant find anything ofthis in themanual. I have 100 
fields in the excel file but only 9-10 field names...


Thanks in advance


Roland





Alexandre Gorbatchev [EMAIL PROTECTED]@fatcity.com den 2002-06-06 
03:03 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

Hello Roland,

The easiest way is to save it from excel as flat comma-separated text file.
Then you should use Oracle SQL*Loader tool and yes you will have to
pre-create the table with all fields you need. (99,9% that's what you need)

You cannot import .xls file into Oracle database directly with standard
oracle tools. I mean with structure, not into the lob filed.

You could access file from PL/SQL and write your own import procedure. (not
a trivial task and not feasible probably :-)
Can use odbc from Excel directly.
May be there are some third-party tools to import.

Alexandre

- Original Message -
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Sent: Thursday, June 06, 2002 12:03 PM


 Hallo,

 I have this excelfile. Is it possible to import this into an oracle table.
This file is supposed to be located on unix machine from the beginning and
the import into an oracle table would be done from unix. How should I name
the fields in the oracle
 table. I mean should I use the 9-10 different field names in the
excelfile.  There is at least 100 different columns in this excelfile. Is it
possible to import a file like that into oracle table,

 Please help me with some hints.
 (See attached file: try.xls)

 Thanks in advance

 Roland


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Alexandre Gorbatchev
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).









--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Oracle - Access

2002-05-03 Thread Roland . Skoldblom

Hallo, anyone who has a good hint on this:

I have an appplication which goes against Oracle and when I am inthe application and 
run VBA code which connects to linked tables everything works fine.
But when I have an icon on the desktop and runs that icon as shortcut then I get error 
messagelike table not exist, but it really exists and it is the same code running 
both times.

Thanks in advance

Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



pl/sql

2002-04-29 Thread Roland . Skoldblom

Hallo,

I have a package which includes 5 different procedures. I would like an exception 
which tells me an error message if any  of the procedures fail.

So if procedure 1 fails I would get an error message or if procedure number 2 would 
fail, or proc number 3 e tc then I would get an error message, which tells me which 
procedure that fails. I tried this, but didnt work. Just give me an easy example
on this.   I tried to look it up in the manual but didnt get it work.

Should I put the exception after each  procedureis finished.

Like this: And should  I name the exceptions in different ways, for instance givethem 
the names EXCEPTIONS1, EXCEPTIONS2 etc.

p1
exception
p2
exeption
p3
exception
p4
exception
p5
exception

Thanks in advance

Roland






-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ms Access user forum

2002-04-26 Thread Roland . Skoldblom

Hallo,

any one  whom knows how where to find a good MsAccess  user forum where I can ask 
questions?

Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Cronjob

2002-04-25 Thread Roland . Skoldblom

Hallo,

I would like to have this cronjob run only in saturday mornings at 6 am. How  could I 
easy change this script?

0 18 * * * /d31/appl/konto/bat/laddabilbo.sh /d31/appl/konto/log/laddabilbo.log
 21

Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Constraints

2002-04-24 Thread Roland . Skoldblom

Hallo,

I am trying to run this script,

ALTER TABLE PBK.K1
  ADD CONSTRAINT idx_rollson PRIMARY KEY (BUTIKS_NR)

but gets the erormessage

ORA-02437: cannot validate (PBK.IDX_ROLLSON) - primary key violated

what can I do to solve this? Please help me. Wouldnt it be enough to have unique 
values in thefield butiks_nr?

Thanks in advance

Roland











-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Cronjob

2002-04-24 Thread Roland . Skoldblom

Anyone whom can tell me how to delete a job that  is  created by  crontab.

Thanks in advance


Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Send mail from PL/SQL

2002-04-19 Thread Roland . Skoldblom

Hallo,

anyone whom can help me. I would like this code to send email to two recipients, what 
is missing?
Thanks for all help I can get.

PROCEDURE   sendmailtestny2(
   inRecipient1 IN VARCHAR2,
 inRecipient2 in VARCHAR2,
   inSubject IN VARCHAR2,
   inMessage IN VARCHAR2,
   inSender IN VARCHAR2 := '[EMAIL PROTECTED]' )
IS
   crlf VARCHAR2(2) := CHR(13)||CHR(10);
   mailhostVARCHAR2(30) := 'asolc78.ica.se';
   mail_conn  utl_smtp.connection;
   lMessage1 VARCHAR2(200);
   lmessage2 VARCHAR2(200);
BEGIN

   lMessage1 := 'From:' || inSender || crlf ||
   'Subject:' || inSubject || crlf ||
   'To:' || inRecipient1 || crlf || '' || crlf ||
  inrecipient2 || crlf || '' || crlf ||
 inMessage || crlf || crlf || '/' || inSender;

 --lMessage2 := 'From:' || inSender || crlf ||
  -- 'Subject:' || inSubject || crlf ||
--   'To:' || inRecipient2 || crlf || '' || crlf ||
  -- inMessage || crlf || crlf || '/' || inSender;

   mail_conn := utl_smtp.open_connection(mailhost, 25);
   utl_smtp.helo(mail_conn, mailhost);
   utl_smtp.mail(mail_conn, inSender);
   utl_smtp.rcpt(mail_conn, inRecipient1);
   utl_smtp.rcpt(mail_conn, inRecipient2);
   utl_smtp.data(mail_conn, lMessage1);
   utl_smtp.data(mail_conn, lMessage2);
   utl_smtp.quit(mail_conn);

END;


Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ang: RE: Send mail from PL/SQL

2002-04-19 Thread Roland . Skoldblom


it helped with CC:

Thanks

/Roland




Abdul Aleem [EMAIL PROTECTED]@fatcity.com den 2002-04-19 03:48 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

In Outlook, when I put two addresses in TO or CC or BCC fields, they are
separated by a semi-colon(;). It appears that your code is placing carriage
return. I do not know if the code will understand this semi-colon as command
terminator. Otherwise you might want to use the CC or BCC fields for the
second recipient.

HTH!

Aleem


 -Original Message-
Sent:   Friday, April 19, 2002 4:28 PM
To:Multiple recipients of list ORACLE-L

Hallo,

anyone whom can help me. I would like this code to send email to two
recipients, what is missing?
Thanks for all help I can get.

PROCEDURE   sendmailtestny2(
   inRecipient1 IN VARCHAR2,
 inRecipient2 in VARCHAR2,
   inSubject IN VARCHAR2,
   inMessage IN VARCHAR2,
   inSender IN VARCHAR2 := '[EMAIL PROTECTED]'
)
IS
   crlf VARCHAR2(2) := CHR(13)||CHR(10);
   mailhostVARCHAR2(30) := 'asolc78.ica.se';
   mail_conn  utl_smtp.connection;
   lMessage1 VARCHAR2(200);
   lmessage2 VARCHAR2(200);
BEGIN

   lMessage1 := 'From:' || inSender || crlf ||
   'Subject:' || inSubject || crlf ||
   'To:' || inRecipient1 || crlf || '' || crlf ||
  inrecipient2 || crlf || '' || crlf ||
 inMessage || crlf || crlf || '/' ||
inSender;

 --lMessage2 := 'From:' || inSender || crlf ||
  -- 'Subject:' || inSubject || crlf ||
--   'To:' || inRecipient2 || crlf || '' || crlf ||
  -- inMessage || crlf || crlf || '/' || inSender;

   mail_conn := utl_smtp.open_connection(mailhost, 25);
   utl_smtp.helo(mail_conn, mailhost);
   utl_smtp.mail(mail_conn, inSender);
   utl_smtp.rcpt(mail_conn, inRecipient1);
   utl_smtp.rcpt(mail_conn, inRecipient2);
   utl_smtp.data(mail_conn, lMessage1);
   utl_smtp.data(mail_conn, lMessage2);
   utl_smtp.quit(mail_conn);

END;


Roland

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Abdul Aleem
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).









--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Import excelfile into Oracle table

2002-04-18 Thread Roland . Skoldblom

Hallo,

anyone who can give me a good example of pl/sql code, which does the folllowing:

Import an excelfile into a table.

(I know I can use sqlloader(which I have used several times) but i would like to make 
a call to that pl/sql procedure from MsAccess.

Thanks in advance


Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ang: Re:Import excelfile into Oracle table

2002-04-18 Thread Roland . Skoldblom


Ok, thanks can you give me a good example on how to write the pl/sql code?

Thanks in advance.

Roland





[EMAIL PROTECTED]@fatcity.com den 2002-04-18 01:10 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:


Hi,
You'd better do the following:
* Convert the excel file to .csv file.
* Use utl_file package to read the data and insert to Oracle Tables.


M.Emre HANCIOGLU
Masterfoods GmbH








--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Unix - need some help

2002-04-16 Thread Roland . Skoldblom


Hallo,

I have this unix script, please tell me how to change it so it also does the following:
(See attached file: laddabilbo.sh)

counts the time between start time and end time of the process(I mean time difference 
between Jobb startat(Job started)  and Job Klart(Job Finished).

IThis log file is also sent by mail to people. I would like this log file only to be 
sent if there is anything wrong with the script(for instance if the database is down) 
So if the script goes fine, then no email will be sent.

The log file looks like this:


Jobb startat :Sun Apr 14 18:06:23 MEST 2002
--
ehbgrupp  status

Total logical records skipped:  0
Total logical records read:   400
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:06:23 2002
Run ended on Sun Apr 14 18:11:51 2002

Elapsed time was: 00:05:28.15
CPU time was: 00:00:00.07 (Ma
--
--
kampanj  status

Total logical records skipped:  0
Total logical records read:13
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:11:51 2002
Run ended on Sun Apr 14 18:12:44 2002

Elapsed time was: 00:00:52.52
CPU time was: 00:00:00.04 (Ma
--
--
mxurval  status

Total logical records skipped:  0
Total logical records read:  4829
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:12:44 2002
Run ended on Sun Apr 14 18:12:50 2002

Elapsed time was: 00:00:05.90
CPU time was: 00:00:00.18 (Ma
--
--
load_arg  status

Total logical records skipped:  0
Total logical records read:151613
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:12:50 2002
Run ended on Sun Apr 14 18:28:11 2002

Elapsed time was: 00:15:20.92
CPU time was: 00:00:25.07 (Ma
--
--
laddabsg  status

Total logical records skipped:  0
Total logical records read: 92326
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:28:11 2002
Run ended on Sun Apr 14 18:40:15 2002

Elapsed time was: 00:12:03.95
CPU time was: 00:00:32.17 (Ma
--
Jobb klart! :Sun Apr 14 18:49:23 MEST 2002


I would really appreciate help.

Thanks in advance

Roland






laddabilbo.sh
Description: Binary data


Unix help

2002-04-16 Thread Roland . Skoldblom

I have this unix script, please tell me how to change it so it also does the following:
counts the time between start time and end time of the process(I mean time difference 
between Jobb startat(Job started)  and Job Klart(Job Finished).


loadbilbo.sh:

#!/bin/sh
. /usr/bin/orasetup.sh
. /d31/appl/konto/bat/movefiles.sh
echo Jobb startat :\c /d31/appl/konto/log/laddabilbo.txt
date /d31/appl/konto/log/laddabilbo.txt
sqlldr userid=konto/icakort control=/d31/appl/konto/bat/ehbgrupp.ctl 
log=/d31/appl/konto/log/ehbgrupp.log
sqlldr userid=konto/icakort control=/d31/appl/konto/bat/kampanj.ctl 
log=/d31/appl/konto/log/kampanj.log
sqlldr userid=konto/icakort control=/d31/appl/konto/bat/mxurval.ctl 
log=/d31/appl/konto/log/mxurval.log
sqlldr userid=konto/icakort control=/d31/appl/konto/bat/load_arg.ctl 
log=/d31/appl/konto/log/load_arg.log
sqlldr userid=konto/icakort control=/d31/appl/konto/bat/laddabsg.ctl 
log=/d31/appl/konto/log/laddabsg.log
sqlplus -s konto/icakort  !
set heading off
set verify off
set feedback off
set termout off
set pages 0
begin
konto.fillbilbotables.anrop;
END;
/
EXIT
!

echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo ehbgrupp  status /d31/appl/konto/log/laddabilbo.txt
tail -11 /d31/appl/konto/log/ehbgrupp.log /d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo kampanj  status /d31/appl/konto/log/laddabilbo.txt
tail -11 /d31/appl/konto/log/kampanj.log /d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo mxurval  status /d31/appl/konto/log/laddabilbo.txt
tail -11 /d31/appl/konto/log/mxurval.log /d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo load_arg  status /d31/appl/konto/log/laddabilbo.txt
tail -11 /d31/appl/konto/log/load_arg.log /d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo laddabsg  status /d31/appl/konto/log/laddabilbo.txt
tail -11 /d31/appl/konto/log/laddabsg.log /d31/appl/konto/log/laddabilbo.txt
echo -- 
/d31/appl/konto/log/laddabilbo.txt
echo Jobb klart! :\c /d31/appl/konto/log/laddabilbo.txt
date /d31/appl/konto/log/laddabilbo.txt


cat /d31/appl/konto/log/laddabilbo.txt | mailx -s Konto - Statusrapport 
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]






IThis log file is also sent by mail to people. I would like this log file only to be 
sent if there is anything wrong with the script(for instance if the database is down) 
So if the script goes fine, then no email will be sent.

The log file looks like this:


Jobb startat :Sun Apr 14 18:06:23 MEST 2002
--
ehbgrupp  status

Total logical records skipped:  0
Total logical records read:   400
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:06:23 2002
Run ended on Sun Apr 14 18:11:51 2002

Elapsed time was: 00:05:28.15
CPU time was: 00:00:00.07 (Ma
--
--
kampanj  status

Total logical records skipped:  0
Total logical records read:13
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:11:51 2002
Run ended on Sun Apr 14 18:12:44 2002

Elapsed time was: 00:00:52.52
CPU time was: 00:00:00.04 (Ma
--
--
mxurval  status

Total logical records skipped:  0
Total logical records read:  4829
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:12:44 2002
Run ended on Sun Apr 14 18:12:50 2002

Elapsed time was: 00:00:05.90
CPU time was: 00:00:00.18 (Ma
--
--
load_arg  status

Total logical records skipped:  0
Total logical records read:151613
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:12:50 2002
Run ended on Sun Apr 14 18:28:11 2002

Elapsed time was: 00:15:20.92
CPU time was: 

Unix script

2002-04-15 Thread Roland . Skoldblom

Hallo,

I have this unix script, please tell me how to change it so it also does the following:
(See attached file: laddabilbo.sh)

counts the time between start time and end time of the process(I mean time difference 
between Jobb startat(Job started)  and Job Klart(Job Finished).

IThis log file is also sent by mail to people. I would like this log file only to be 
sent if there is anything wrong with the script(for instance if the database is down) 
So if the script goes fine, then no email will be sent.

The log file looks like this:


Jobb startat :Sun Apr 14 18:06:23 MEST 2002
--
ehbgrupp  status

Total logical records skipped:  0
Total logical records read:   400
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:06:23 2002
Run ended on Sun Apr 14 18:11:51 2002

Elapsed time was: 00:05:28.15
CPU time was: 00:00:00.07 (Ma
--
--
kampanj  status

Total logical records skipped:  0
Total logical records read:13
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:11:51 2002
Run ended on Sun Apr 14 18:12:44 2002

Elapsed time was: 00:00:52.52
CPU time was: 00:00:00.04 (Ma
--
--
mxurval  status

Total logical records skipped:  0
Total logical records read:  4829
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:12:44 2002
Run ended on Sun Apr 14 18:12:50 2002

Elapsed time was: 00:00:05.90
CPU time was: 00:00:00.18 (Ma
--
--
load_arg  status

Total logical records skipped:  0
Total logical records read:151613
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:12:50 2002
Run ended on Sun Apr 14 18:28:11 2002

Elapsed time was: 00:15:20.92
CPU time was: 00:00:25.07 (Ma
--
--
laddabsg  status

Total logical records skipped:  0
Total logical records read: 92326
Total logical records rejected: 0
Total logical records discarded:0

Run began on Sun Apr 14 18:28:11 2002
Run ended on Sun Apr 14 18:40:15 2002

Elapsed time was: 00:12:03.95
CPU time was: 00:00:32.17 (Ma
--
Jobb klart! :Sun Apr 14 18:49:23 MEST 2002


I would really appreciate help.

Thanks in advance

Roland






laddabilbo.sh
Description: Binary data


Utl_file

2002-04-11 Thread Roland . Skoldblom

Hallo,

Is it possible to do a select from some tables in the database and then use utl_file 
package to create an excel file. And also to make the headers in the columns bold and 
right positioned. Please give me an easy example on how to write the code.

Thanks in advance


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Pl/sql question - if statement

2002-04-09 Thread Roland . Skoldblom

anyone whom can tell me why this statement fails in a pl/sqll code:


I  get this error message
PLS-00103: Encountered the symbol ||AvdNr|| when expecting one of the following:

   . ( * @ %  = - +  /  at in mod not rem then
   an exponent (**)  or != or ~= = =  and or like
   betwe


 when i run this statement






If  A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 ''
 then

lvSQL := 'SELECT ICA_ARTIKEL.FSGPRIS,ICA_ARTIKEL.PANTBELOPP ' ||
   
--PBK.LPKORGEANREL.EANREL,PBK.LPKORGEANREL.VARUTYP ' ||
 'FROM 
A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| ' ' ||
   --PBK.LPKORGEANREL ' ||
 'WHERE ICA_ARTIKEL.EAN=' || EanLPVara || ' ' 
||
 'AND 
ICA_ARTIKEL.DATUMTO_DATE('''||inDatum||''',''-MM-DD'') ' ||
  -- 'AND ICA_ARTIKEL.BORTTAGS_FLAGG = 0 ' 
||
  'ORDER BY DATUM DESC';

  -- DBMS_OUTPUT.PUT_LINE(lvSQL);
  
DBMS_OUTPUT.PUT_LINE(SUBSTR(lvSQL,1,250));
 DBMS_OUTPUT.PUT_LINE(SUBSTR(lvSQL,251,250));
  END IF;

Please help me. I must be blind. I have tried to look at the first code line..
Would appreciate help very much.


Thanks in advance.

Roland







-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ang: RE: Pl/sql question - if statement

2002-04-09 Thread Roland . Skoldblom


Yes but then it fails onthe word borttags_flagg, thi serrormessage :


PLS-00103: Encountered the symbol BORTTAGS_FLAGG when expecting one of the following:

   . ( * @ %  = - +  /  at in mod not rem then
   an exponent (**)  or != or ~= = =  and or like

I reallydont see what the error is:


Roland






John Hallas [EMAIL PROTECTED]@fatcity.com den 2002-04-09 07:58 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

Don't you need to start of with a quote before  the first A

If  'A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 ''

John

-Original Message-
[EMAIL PROTECTED]
Sent: 09 April 2002 15:43
To: Multiple recipients of list ORACLE-L

anyone whom can tell me why this statement fails in a pl/sqll code:


I  get this error message
PLS-00103: Encountered the symbol ||AvdNr|| when expecting one of the
following:

   . ( * @ %  = - +  /  at in mod not rem then
   an exponent (**)  or != or ~= = =  and or like
   betwe


 when i run this statement






If  A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 ''
 then

lvSQL := 'SELECT ICA_ARTIKEL.FSGPRIS,ICA_ARTIKEL.PANTBELOPP ' ||
   --PBK.LPKORGEANREL.EANREL,PBK.LPK
ORGEANREL.VARUTYP ' ||
 'FROM
A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| ' ' ||
   --PBK.LPKORGEANREL ' ||
 'WHERE ICA_ARTIKEL.EAN=' ||
EanLPVara || ' ' ||
 'AND
ICA_ARTIKEL.DATUMTO_DATE('''||inDatum||''',''-MM-DD'') ' ||
  -- 'AND
ICA_ARTIKEL.BORTTAGS_FLAGG = 0 ' ||
  'ORDER BY DATUM DESC';

  --
DBMS_OUTPUT.PUT_LINE(lvSQL);

DBMS_OUTPUT.PUT_LINE(SUBSTR(lvSQL,1,250));

DBMS_OUTPUT.PUT_LINE(SUBSTR(lvSQL,251,250));
  END IF;

Please help me. I must be blind. I have tried to look at the first code
line..
Would appreciate help very much.


Thanks in advance.

Roland







--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: John Hallas
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).









--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Pl/SQL code help

2002-04-08 Thread Roland . Skoldblom

Hallo,

I  have some trouble with this pl/sql procedure.  I would like

that this lvsql to be run only if the field Borttags_flagg = 0  but i get an error in 
the if statement, whatis wrong with this? It get the erromressage:
LS-00103: Encountered the symbol ||AvdNr|| when expecting one of the following:

   . ( *  %  = - +  /  at in mod not rem then
   an exponent (**)  or != or ~= = =  and or like
   betwe..


when I compile the whole procedure. Please help me with this.
(If the borttags_flagg  = 1 then it will continue the loop and check for next one. 
etc...


   If  A'||AvdNr||'.ICA_ARTIKEL'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 '' ||
 then

(this lvsql is to be run only if field borttags_flagg = 0) 
  lvSQL := 'SELECT 
ICA_ARTIKEL.FSGPRIS,ICA_ARTIKEL.BORTTAGS_FLAGG,ICA_ARTIKEL.PANTBELOPP ' ||
   
--PBK.LPKORGEANREL.EANREL,PBK.LPKORGEANREL.VARUTYP ' ||
 'FROM 
A'||AvdNr||'.ICA_ARTIKEL'||LookUpServerName|| ' ' ||
   --PBK.LPKORGEANREL ' ||
 'WHERE ICA_ARTIKEL.EAN=' || EanLPVara || ' ' 
||
 'AND 
ICA_ARTIKEL.DATUMTO_DATE('''||inDatum||''',''-MM-DD'') ' ||
  -- 'AND ICA_ARTIKEL.BORTTAGS_FLAGG = 0 ' 
||
  'ORDER BY DATUM DESC';



The whole procedure you can see in the file:

(See attached file: testplsql.SQL)


Thanks  in advance

Roland S








testplsql.SQL
Description: Binary data


PL/SQL help - need some quick help

2002-04-08 Thread Roland . Skoldblom

Hallo,

I have some trouble to get this pl/sql code right. Anyone whpom could help me with 
this. It is important.


Hallo,

I  have some trouble with this pl/sql procedure.  I would like

that this lvsql to be run only if the field Borttags_flagg = 0  but i get an error in 
the if statement, whatis wrong with this? It get the erromressage:
LS-00103: Encountered the symbol ||AvdNr|| when expecting one of the following:

   . ( *  %  = - +  /  at in mod not rem then
   an exponent (**)  or != or ~= = =  and or like
   betwe..


when I compile the whole procedure. Please help me with this.
(If the borttags_flagg  = 1 then it will continue the loop and check for next one. 
etc...


   If  A'||AvdNr||'.ICA_ARTIKEL'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 '' ||
 then

(this lvsql is to be run only if field borttags_flagg = 0) 
  lvSQL := 'SELECT 
ICA_ARTIKEL.FSGPRIS,ICA_ARTIKEL.BORTTAGS_FLAGG,ICA_ARTIKEL.PANTBELOPP ' ||
   
--PBK.LPKORGEANREL.EANREL,PBK.LPKORGEANREL.VARUTYP ' ||
 'FROM 
A'||AvdNr||'.ICA_ARTIKEL'||LookUpServerName|| ' ' ||
   --PBK.LPKORGEANREL ' ||
 'WHERE ICA_ARTIKEL.EAN=' || EanLPVara || ' ' 
||
 'AND 
ICA_ARTIKEL.DATUMTO_DATE('''||inDatum||''',''-MM-DD'') ' ||
  -- 'AND ICA_ARTIKEL.BORTTAGS_FLAGG = 0 ' 
||
  'ORDER BY DATUM DESC';



The whole procedure you can see in the file:

(See attached file: testplsql.SQL)


Thanks  in advance Would really appreciate this.

Roland S





(See attached file: testplsql.SQL)



Thanks in advance.


Roland


testplsql.SQL
Description: Binary data


Ang: RE: Pl/SQL code help

2002-04-08 Thread Roland . Skoldblom


But when I have fixed that error and then have the
then statement
 put before the lvsql statement
 I get this errormessage:

What does that mean? How to fix it?

PLS-00103: Encountered the symbol THEN when expecting one of the following:

   ( - + mod null an identifier
   a double-quoted delimited-identifier a bind variable avg
   count current max mi

Thanks in advance

Roland




Thomas, John [EMAIL PROTECTED]@fatcity.com den 2002-04-08 07:24 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

Roland,

I think you have a quote in the wrong place:
If  A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 '' ||

Should probably read:

If  'A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 ' ||

 Cheers,

 John Thomas



-Original Message-
Sent: 08 April 2002 13:43
To: Multiple recipients of list ORACLE-L


Hallo,

I  have some trouble with this pl/sql procedure.  I would like

that this lvsql to be run only if the field Borttags_flagg = 0  but i get an
error in the if statement, whatis wrong with this? It get the erromressage:
LS-00103: Encountered the symbol ||AvdNr|| when expecting one of the
following:

   . ( * @ %  = - +  /  at in mod not rem then
   an exponent (**)  or != or ~= = =  and or like
   betwe..


when I compile the whole procedure. Please help me with this.
(If the borttags_flagg  = 1 then it will continue the loop and check for
next one. etc...


   If  A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG =
0 '' ||
 then

(this lvsql is to be run only if field borttags_flagg = 0)
lvSQL := 'SELECT
ICA_ARTIKEL.FSGPRIS,ICA_ARTIKEL.BORTTAGS_FLAGG,ICA_ARTIKEL.PANTBELOPP ' ||

--PBK.LPKORGEANREL.EANREL,PBK.LPKORGEANREL.VARUTYP ' ||
 'FROM
A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| ' ' ||
   --PBK.LPKORGEANREL ' ||
 'WHERE ICA_ARTIKEL.EAN=' ||
EanLPVara || ' ' ||
 'AND
ICA_ARTIKEL.DATUMTO_DATE('''||inDatum||''',''-MM-DD'') ' ||
  -- 'AND
ICA_ARTIKEL.BORTTAGS_FLAGG = 0 ' ||
  'ORDER BY DATUM DESC';



The whole procedure you can see in the file:

(See attached file: testplsql.SQL)


Thanks  in advance

Roland S







**
Legal Disclaimer : This e-mail is for the intended recipient only.
If an addressing or transmission error has misdirected this e-mail,
please notify the sender by replying to this e-mail.  If you are not
the intended recipient you must not use, disclose, distribute, copy,
print or rely on this e-mail.  The opinions expressed in this message
are those of the sender and not those of TelesensKSCL.

This footnote also confirms that this e-mail has been swept by
MIMEsweeper for the presence of computer viruses.

Please note that TelesensKSCL monitors both incoming and
outgoing emails in accordance with our email policy.
**

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Thomas, John
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).









--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ang: RE: Send mail from pl/sql

2002-04-05 Thread Roland . Skoldblom


I am using Notes mail system

Roland




Abdul Aleem [EMAIL PROTECTED]@fatcity.com den 2002-04-05 01:18 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

Which mail client are you looking it for. If it is for MS outlook, you can
check at Perter Koltez's site

Aleem

 -Original Message-
Sent:   Friday, April 05, 2002 12:33 PM
To:Multiple recipients of list ORACLE-L

Hallo,

Does anyone have a good example on a procedure how to send email from
Pl/SQL. What I want to happen is to do  a select statement and then send a
mail with the result to the  address [EMAIL PROTECTED]
Please help me with this. I would appreciate it very miuch.

Thanks in advance

Roland

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Abdul Aleem
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).









--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Copy tables and indexes etc from one db to another

2002-04-05 Thread Roland . Skoldblom

Hallo,

anyone whom can tellme the easiest way to copy tables etc from one database to another.

Thanks in advance

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Pl/SQL debug

2002-04-04 Thread Roland . Skoldblom

Hallo,

I am trying to insert things  into the table PRISREGISTER_KOPIA_WED but why doesnt the 
insert statement work.
It says Missing expression when the insertstatement runs and when i look at the sql 
code which is trying to be run to insertinto the table
it says just missing expression and it seems that I dont nclude BORTTAGS_FLAGG by 
some reason. can anyone help me with this:
The sql which is to run is INSERT INTO 
PBK.PRISREGISTER_kopia_wed(BUTIKID,EAN,PERIOD,LAGSTAPRIS,PRIS,UNDERLAGID,SUBSTITUT,KOMMENTAR,BUTIKTYP,VARUTYP,REGICASTATUS,VARENR,LEVNR,VARE_SNR,BORTTAGS_FLAGG)
 VALUES (116,7312300342180,'200206',
0,9.95,616,NULL,'null', 0 , 0, 1, 290799, 13173, 10, )

As you see the last parameter is missing.

The whole pl/sql code looks like this included file.

(See attached file: newregicapriceroland.sql)

Hope any one can help me with this. Would appreciate very much.

Thanks in advance

Roland S




newregicapriceroland.sql
Description: Binary data


PL/SQL again

2002-04-04 Thread Roland . Skoldblom

I sent the wrong pl/sql code in last message. I want the field BORTTAGS_FLAGG to be 
inserted in prisregister_kopia_wed.
(See attached file: regicarol.txt)
What is missing?



Thanks in advance

Roland S


regicarol.txt
Description: Text - character set unknown


Trigger question

2002-04-03 Thread Roland . Skoldblom

Hallo,

What is wrong with this trigger:

I want the trigger to fire(to run the statement : UPPER(SUBSTR(:OLD.namn, 1, 1)) || 
SUBSTR(:OLD.namn,2);
after new record is inserted in this table.

The thing to happen should be this:

I want that script to be run on the same record that has been inserted in the table. 
So the UPPer command should run on the namn field that has been inserted in the table.
Hope anyone can´help me.

CREATE OR REPLACE TRIGGER AFTER_INSERT_ROWins_ON_test
after insert
   ON test
  REFERENCING NEW AS NEW OLD AS OLD
  FOR EACH ROW
BEGIN

:NEW.namn :=UPPER(SUBSTR(:OLD.namn, 1, 1)) || SUBSTR(:OLD.namn,2);
--  :NEW.namn := UPPER(SUBSTR(:OLD.namn, 1, 1) || SUBSTR(:OLD.namn), 2);
EXCEPTION
  WHEN OTHERS THEN
raise_application_error(-2, 'ERROR IN TRIGGER AFTER_INSERT_ROWins_ON_test: ' 
|| SQLERRM);

END;

/


Thanks in advance

Roland S

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Trigger question

2002-03-28 Thread Roland . Skoldblom

Hallo,

anyone who can please helpme with a trigger script that does the following:

I want  this script to run when I have updated a field in a table.

update test set namn = upper(substr(namn,1,1) || substr(namn),2)

I want this trigger to fire only for the selected record(row), that is going to be 
updated. Please help me with this, it might seem simple but I cant get it right.

Thanks in advance

Roland S

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Make first character Versal

2002-03-27 Thread Roland . Skoldblom

Hallo,

I know this question sound a bit simple, but  can anyone give me a select statement 
which make the first character of the word in a field
Would appreciate very much. I have checked the manual but cant get it right.

I am starting with this sql statement:

select (substr (namn,0,1)) from test to pick outthe first character and I want that 
first character to be a VERSAL.


Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ang: Re: Make first character Versal

2002-03-27 Thread Roland . Skoldblom


I found out what was wrong:
wanted to do an update too...

update test set test =
upper(substr(namn,1,1))  || substr(namn,2)

then my update worked

Roland S







Jan Pruner [EMAIL PROTECTED]@fatcity.com den 2002-03-27 04:23 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

Use UPPER() function.

to get only first char :
select upper(substr(namn,1,1)) from test;

to get whole word, but with first char versal:
select upper(substr(namn,1,1))  || substr(namn,2)from test;

JP

On Wed 27. March 2002 12:58, you wrote:
 Hallo,

 I know this question sound a bit simple, but  can anyone give me a select
 statement which make the first character of the word in a field Would
 appreciate very much. I have checked the manual but cant get it right.

 I am starting with this sql statement:

 select (substr (namn,0,1)) from test to pick outthe first character and I
 want that first character to be a VERSAL.


 Thanks in advance

 Roland
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jan Pruner
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).









--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



PL/SQL - procedure

2002-03-26 Thread Roland . Skoldblom



Hallo,

 Can anyone give me an example on a pl/sql code, which does the following:

 I have 4 procedures, and I want the following to be logged in a status
 table.

 Procedure names
 Start_time of procedure
 End_time_of procedure
 Error_code(if anything goes wrong)
 Error_message

 Please give me example onhow to write the code and also tell me how to pick
 out the procedure_name, start_time of_procedure, end_time_ptocedure,
 error_code, error_message.

 Thanks in advance.And just dontgive me a link, i wantthis real example too.

 Roland S

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Create info about table definition

2002-03-25 Thread Roland . Skoldblom

Hallo,

is there any way to create a  table of the definition of table( list of field names 
and their datatypes, indexes etc)

Thanks in advance


Roland S

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



PL/SQL - procedur

2002-03-25 Thread Roland . Skoldblom

Hallo,

Can anyone give me an example on a pl/sql code, which does the following:

I have 4 procedures, and I want the following to be logged in a status table.

Procedure names
Start_time of procedure
End_time_of procedure
Error_code(if anything goes wrong)
Error_message

Please give me example onhow to write the code and also tell me how to pick out the 
procedure_name, start_time of_procedure, end_time_ptocedure,
error_code, error_message.

Thanks in advance.

Roland S








-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



pL/SQL PROCEDUR

2002-03-25 Thread Roland . Skoldblom

Hallo,

 Can anyone give me an example on a pl/sql code, which does the following:

 I have 4 procedures, and I want the following to be logged in a status
 table.

 Procedure names
 Start_time of procedure
 End_time_of procedure
 Error_code(if anything goes wrong)
 Error_message

 Please give me example onhow to write the code and also tell me how to pick
 out the procedure_name, start_time of_procedure, end_time_ptocedure,
 error_code, error_message.

 Thanks in advance.And just dontgive me a link, i wantthis real example too.

 Roland S

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Sql loader - schedule

2002-03-18 Thread Roland . Skoldblom

Hallo,

How is it possible to schedule an sql loader script, which is running on network(not 
unix).  Let us say this should run at 6 pm every day.
This sqlloader simply loads a textfile into a table in the database.

Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



MsAccess group

2002-03-05 Thread Roland . Skoldblom

Hallo,

anyone know knows any webpage where I can ask MsAccess questions about error messages?

Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Copy files to hard drive from unix server

2002-02-19 Thread Roland . Skoldblom

Hallo,

anyone who can give me an easy example on a unix shell  script that copies files from 
a unix directory /test/files to the hard drive directory c:\temp
Thanks in advance. Would appreciate very much.

Roland S




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Unixscript

2002-02-15 Thread Roland . Skoldblom

Hallo,

Anyone who has a good example on a unix script, which does the following:

Copies files from a unix directory. to the  hard drive, for instance from the 
directory /konto/test
to the hard drive C:\temp

Would appreciate this if you could help me with this.


Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



From MsAccess to Oracle

2002-02-15 Thread Roland . Skoldblom

Hallo,

Please tellme how to write the MsAccess procedure to call the pl/sql procedure 
proc_konk, I am not using ADO in MsAccess

The pl(/sqlprocedure looks like this:

Procedure proc_konk
 (v_butiks_nr in pbk.konkurrentbutik.BUTIKS_NR%type,
  v_namn in pbk.konkurrentbutik.NAMN%type,
  v_butiktyp in pbk.konkurrentbutik.BUTIKTYP%type,
  v_region in pbk.konkurrentbutik.REGION%type,
  v_postnr in pbk.konkurrentbutik.POSTNR%type,
  v_postort in pbk.konkurrentbutik.POSTORT%type,
  v_adress in pbk.konkurrentbutik.ADRESS%type) is

  lvsql VARCHAR2(2800);

BEGIN

   lvsql :=
   'INSERT into PBK.KONKURRENTBUTIK (' ||
   'butiks_nr,' ||
   'namn,' ||
   'butiktyp,' ||
   'region,' ||
   'postort,' ||
   'postnr,' ||
   'adress )' ||
   'VALUES ('||
   v_butiks_nr||','''||
   v_namn||''', '||
   v_butiktyp||',' ||
   v_region||','''||
   v_postort ||''',' ||
   v_postnr ||',''' ||
   v_adress  ||''')';


 DBMS_OUTPUT.PUT_LINE(lvsql);


  EXECUTE IMMEDIATE lvSQL;


END PROC_KONK;



Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Call PL/SQL from MsAccess

2002-02-14 Thread Roland . Skoldblom

Hallo,

anyone whom can give me an example onhow to write an MsAccess procedure which make a 
call to a pl/sqlprocedure. I want the MsAccess procedure send 5 parametsrs through to 
pl/sql.

Thanks in advance


Roland



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



MsAccess calling PL/SQL

2002-02-14 Thread Roland . Skoldblom

Hallo,

anyone whom can give me an example onhow to write an MsAccess procedure which make a 
call to a pl/sqlprocedure. I want the MsAccess procedure send 5 parametsrs through to 
pl/sql.

Thanks in advance


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



MsAccess to Oracle

2002-02-13 Thread Roland . Skoldblom

Hallo,

anyone who has an example on a Ms Access procedure that makes a call to a pl(/sql 
procedure?
My  pl/sql procedure does an insert of oneline into the database.Or anyone who can 
tell me where to get help on this.


Thanks in advance


Roland S





-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Download a database

2002-02-09 Thread Roland . Skoldblom

Anyone who knows ifthere is  a possibility to download some edition of oracle database 
to your harddrive?
I am running Windows 2000 Millenium Edition.

Thanks in advance

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Book suggestion

2002-02-05 Thread Roland . Skoldblom

Hallo,

Is there anyone who knows about any book which deals with  the connection 
Oracle(PL/SQL) and Access..

Thanks in advance

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ang: RE: How to find out what caused job to fail?

2002-02-04 Thread Roland . Skoldblom


But how do I use the alert log and where canI find the trace file?


Roland




[EMAIL PROTECTED]@fatcity.com den 2002-02-04 01:05 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

Hi, you can find the reason in alert log or trace files.
 -Original Message-
 From: Daiminger, Helmut [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 04, 2002 4:40 PM
 To: Multiple recipients of list ORACLE-L
 Subject: How to find out what caused job to fail?



 Hi!


 Is there a way to find out, why a database job failed? in dba_jobs (or 
user_jobs), I can only see that it failed, but no indication of the reason why it 
failed. Any ideas?


 This is 8.1.7 on Solaris.


 Thanks,
 Helmut













--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Pl/sql - shell script

2002-01-30 Thread Roland . Skoldblom

Hallo, is there anyone who can tell me if it ispossible run unix shell script from 
PL/SQL
Anyone who has a good example too that I can use. Thanks in advance.

Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Pl/sql question

2002-01-28 Thread Roland . Skoldblom

Hallo,

anyone who canhelp me with this?

I have PL/sql procedure and if something goes wrong I would like the following things 
to occur. Please help me with them

If some errors occur I want this to happen.

- pick out the name of the procedure thatis currently running,
-pick out the start_time of the procedure
- pick outthe end_time of the procedure when it fails
- pick out the number of rows that were inserted inthe insertstatement inthe procedure.
- The error code
_Th errormessage

All these things I want to be inserted in a table. Give me a good example on how to 
write the code, please.


Thanks in advance

Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ang: RE: Pl/sql question

2002-01-28 Thread Roland . Skoldblom


Oki thanks for info can you please show me an example with autonoumus transactions? 
Please.

Thanks in advance

Roland






[EMAIL PROTECTED]@fatcity.com den 2002-01-28 03:30 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:


Just a note

Inserting in an error table in the excpetion clause is a common problem
because
if something goes wrong and exception was thrown then You usually don't
want commit
But You cannot insert ereror record without commit
So in ancient times there was dbms_pipe etc. Since 8.something You can
use autonomous transactions instead, I think it is more elegant solution

Gints Plivna
IT Sistçmas, Meríeïa 13, LV1050 Rîga
http://www.itsystems.lv/gints/




Thomas, Kevin
Kevin.Thomas@cal   To: Multiple recipients of list 
ORACLE-L [EMAIL PROTECTED]
anais.com  cc:
Sent by:Subject: RE: Pl/sql question
[EMAIL PROTECTED]


2002.01.28 11:20
Please respond to
ORACLE-L






Hi Roland,

Best way to do this is just set some variables at the start of your code:

l_proc_start := sysdate;
l_proc_name  := 'proc_name';

begin

  ...commands...

exception

  when exception then
   l_proc_end := sysdate;

  SELECT count(*)
INTO l_ins_count
FROM table being inserted to;

  INSERT INTO error_table
  ( proc_name
   ,proc_start
   ,proc_end
   ,proc_count
   ,proc_err
   ,proc_err_msg
  )
  VALUES
  ( l_proc_name
   ,l_proc_start
   ,l_proc_end
   ,l_ins_count
   ,sqlcode
   ,sqlerrm
  );

  COMMIT;

END;

-Original Message-
Sent: 28 January 2002 08:40
To: Multiple recipients of list ORACLE-L


Hallo,

anyone who canhelp me with this?

I have PL/sql procedure and if something goes wrong I would like the
following things to occur. Please help me with them

If some errors occur I want this to happen.

- pick out the name of the procedure thatis currently running,
-pick out the start_time of the procedure
- pick outthe end_time of the procedure when it fails
- pick out the number of rows that were inserted inthe insertstatement
inthe
procedure.
- The error code
_Th errormessage

All these things I want to be inserted in a table. Give me a good example
on
how to write the code, please.


Thanks in advance

Roland


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Thomas, Kevin
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).









--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of 

PL/SQL

2002-01-28 Thread Roland . Skoldblom

How can I in a pl/sql block write null if I want null to be inserted in a field when I 
use dynamic sql.?
. I mean nothing is going to be inserted.




Thanks in advance


Roland

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Access support

2002-01-28 Thread Roland . Skoldblom

Hallo,

anyone who knows about a website with good Access tips?

Thanks in advance


Roland


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Ang: Re: RE: Pl/sql question

2002-01-28 Thread Roland . Skoldblom


Ok sorry i found out this answer myself:-)







Igor Neyman [EMAIL PROTECTED]@fatcity.com den 2002-01-28 08:25 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

Roland,

With this sort of questions, you are forcing listers to create a rule (in
e-mail utility), which will forward your messages directly into trash bin.
Try to restrain yourself.

Igor Neyman, OCP DBA
[EMAIL PROTECTED]


- Original Message -
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Sent: Monday, January 28, 2002 10:10 AM


Man, do you not have manuals?  Have you even attempted to look it up.  This
is not a teaching class.
Go try something and if you are having issues come back and ask about that
issue.  But we are not
here to write your code for you.  There are folks you can hire for that.

-Original Message-
[EMAIL PROTECTED]
Sent: Monday, January 28, 2002 4:05 AM
To: Multiple recipients of list ORACLE-L



Oki thanks for info can you please show me an example with autonoumus
transactions? Please.

Thanks in advance

Roland






[EMAIL PROTECTED]@fatcity.com den 2002-01-28 03:30 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:


Just a note

Inserting in an error table in the excpetion clause is a common problem
because
if something goes wrong and exception was thrown then You usually don't
want commit
But You cannot insert ereror record without commit
So in ancient times there was dbms_pipe etc. Since 8.something You can
use autonomous transactions instead, I think it is more elegant solution

Gints Plivna
IT Sistçmas, Meríeïa 13, LV1050 Rîga
http://www.itsystems.lv/gints/




Thomas, Kevin
Kevin.Thomas@cal   To: Multiple recipients of
list ORACLE-L [EMAIL PROTECTED]
anais.com  cc:
Sent by:Subject: RE: Pl/sql question
[EMAIL PROTECTED]


2002.01.28 11:20
Please respond to
ORACLE-L






Hi Roland,

Best way to do this is just set some variables at the start of your code:

l_proc_start := sysdate;
l_proc_name  := 'proc_name';

begin

  ...commands...

exception

  when exception then
   l_proc_end := sysdate;

  SELECT count(*)
INTO l_ins_count
FROM table being inserted to;

  INSERT INTO error_table
  ( proc_name
   ,proc_start
   ,proc_end
   ,proc_count
   ,proc_err
   ,proc_err_msg
  )
  VALUES
  ( l_proc_name
   ,l_proc_start
   ,l_proc_end
   ,l_ins_count
   ,sqlcode
   ,sqlerrm
  );

  COMMIT;

END;

-Original Message-
Sent: 28 January 2002 08:40
To: Multiple recipients of list ORACLE-L


Hallo,

anyone who canhelp me with this?

I have PL/sql procedure and if something goes wrong I would like the
following things to occur. Please help me with them

If some errors occur I want this to happen.

- pick out the name of the procedure thatis currently running,
-pick out the start_time of the procedure
- pick outthe end_time of the procedure when it fails
- pick out the number of rows that were inserted inthe insertstatement
inthe
procedure.
- The error code
_Th errormessage

All these things I want to be inserted in a table. Give me a good example
on
how to write the code, please.


Thanks in advance

Roland


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Thomas, Kevin
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: 

Ang: RE: sqlplus question

2002-01-28 Thread Roland . Skoldblom


Well, you can check the manual but use the package dbms_output.put_job that willfix it 
when you are inoracle but ifyoua re
in unix environment you must use crontab

Hope this is of help for you


Roland





Weaver, Walt [EMAIL PROTECTED]@fatcity.com den 2002-01-28 14:45 PST

Sänd svar till [EMAIL PROTECTED]

Sänt av:  [EMAIL PROTECTED]


Till: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Kopia:

Cron? At?

-Original Message-
Sent: Monday, January 28, 2002 3:21 PM
To: Multiple recipients of list ORACLE-L


Hello,
I need to run some script using Oracle Sqlplus.  The script is only suppose
to run certain days of week.
Does anyone have a suggestion how to do that.

Thank you.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Weaver, Walt
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).









--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



  1   2   3   >