Click here to Skip to main content
15,896,118 members
Home / Discussions / Database
   

Database

 
QuestionRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Eddy Vluggen16-May-13 3:49
professionalEddy Vluggen16-May-13 3:49 
AnswerRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Miguel Quintanilla16-May-13 4:32
Miguel Quintanilla16-May-13 4:32 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Eddy Vluggen16-May-13 4:53
professionalEddy Vluggen16-May-13 4:53 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Miguel Quintanilla20-May-13 5:13
Miguel Quintanilla20-May-13 5:13 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Eddy Vluggen20-May-13 8:17
professionalEddy Vluggen20-May-13 8:17 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Miguel Quintanilla20-May-13 8:25
Miguel Quintanilla20-May-13 8:25 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Eddy Vluggen20-May-13 8:28
professionalEddy Vluggen20-May-13 8:28 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Miguel Quintanilla20-May-13 8:41
Miguel Quintanilla20-May-13 8:41 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Eddy Vluggen20-May-13 8:49
professionalEddy Vluggen20-May-13 8:49 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Miguel Quintanilla20-May-13 9:09
Miguel Quintanilla20-May-13 9:09 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Eddy Vluggen20-May-13 9:51
professionalEddy Vluggen20-May-13 9:51 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Miguel Quintanilla20-May-13 16:23
Miguel Quintanilla20-May-13 16:23 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Eddy Vluggen20-May-13 19:45
professionalEddy Vluggen20-May-13 19:45 
AnswerRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Mycroft Holmes16-May-13 21:24
professionalMycroft Holmes16-May-13 21:24 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Miguel Quintanilla20-May-13 7:09
Miguel Quintanilla20-May-13 7:09 
Hi many thanks for all the help you give me. here is my problem i want to use me of this:
this i have on toad:
-- run every 5 MINUTES
BEGIN
dbms_scheduler.create_schedule(
schedule_name => 'INTERVAL_EVERY_5_MINUTES',
start_date => trunc(sysdate)+18/24,
repeat_interval => 'freq=MINUTELY;interval=5',
comments => 'Runtime: Every day all 5 minutes');
END;
/
begin
-- Call a procedure of a database package
dbms_scheduler.create_program
(program_name=> 'PROG_COLLECT_SESS_DATA',
program_type=> 'STORED_PROCEDURE',
program_action=> '?????? i dont have this yet',
enabled=>true,
comments=>'Procedure to collect session information'
);
end;

begin
-- Connect both dbms_scheduler parts by creating the final job
dbms_scheduler.create_job
(job_name => 'JOB_COLLECT_SESS_DATA',
program_name=> 'PROG_COLLECT_SESS_DATA',
schedule_name=>'INTERVAL_EVERY_5_MINUTES',
enabled=>true,
auto_drop=>false,
comments=>'Job to collect data about session values every 5 minutes');
end;

I AM GOING TO USE THIS SCHEDULED JOB AND NOW I WANT TO CREATE MY SQL AND I HAVE A LITTLE BIT OF TROUBLE.
I HAVE DONE THIS DBLINK:
CREATE DATABASE LINK DB_2 CONNECT TO COMPUSOFT IDENTIFIED BY albosapam02 USING 'inv2'
AND THEN I HAVE DONE THIS:


SELECT * FROM PESAJE
MINUS
SELECT * FROM PESAJE@DB_2
IT GIVES ME A RESULT BUT NOW I WANT TO INSERT THAT RESULT IN THE DB_2 AND STORE THE QUERY SO I CAN ALL IT ON THE JOB..
aNY HELP???
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Mycroft Holmes20-May-13 12:25
professionalMycroft Holmes20-May-13 12:25 
GeneralRe: Create an sql script that compares two dbase and updates dbase and insert date of update in a column in oracle 11g Pin
Miguel Quintanilla20-May-13 16:11
Miguel Quintanilla20-May-13 16:11 
QuestionCreate a procedure to change date value of a column in a table ? (SQL) Pin
taibc15-May-13 21:09
taibc15-May-13 21:09 
AnswerRe: Create a procedure to change date value of a column in a table ? (SQL) Pin
Corporal Agarn16-May-13 1:18
professionalCorporal Agarn16-May-13 1:18 
GeneralRe: Create a procedure to change date value of a column in a table ? (SQL) Pin
taibc16-May-13 3:41
taibc16-May-13 3:41 
GeneralRe: Create a procedure to change date value of a column in a table ? (SQL) Pin
Corporal Agarn16-May-13 3:49
professionalCorporal Agarn16-May-13 3:49 
AnswerRe: Create a procedure to change date value of a column in a table ? (SQL) Pin
Eddy Vluggen16-May-13 3:16
professionalEddy Vluggen16-May-13 3:16 
GeneralRe: Create a procedure to change date value of a column in a table ? (SQL) Pin
taibc16-May-13 3:34
taibc16-May-13 3:34 
GeneralRe: Create a procedure to change date value of a column in a table ? (SQL) Pin
Eddy Vluggen16-May-13 3:48
professionalEddy Vluggen16-May-13 3:48 
GeneralLooking for the best solution Pin
MacAriel15-May-13 8:40
MacAriel15-May-13 8:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.