Click here to Skip to main content
15,887,596 members
Home / Discussions / Database
   

Database

 
AnswerRe: stored procedure or views? Pin
Aatif Ali from Bangalore5-Jul-13 3:25
professionalAatif Ali from Bangalore5-Jul-13 3:25 
Questionin mysql database i implemented simple query on 1 like select * from dbo.company limit 2 .it taking tomuch time.except that table remaning all tables are working well. in that table records also very less.i try to editing,droping,deleting any thing i Pin
Member 967148216-May-13 20:15
Member 967148216-May-13 20:15 
AnswerRe: in mysql database i implemented simple query on 1 like select * from dbo.company limit 2 .it taking tomuch time.except that table remaning all tables are working well. in that table records also very less.i try to editing,droping,deleting any thi Pin
Eddy Vluggen17-May-13 5:00
professionalEddy Vluggen17-May-13 5:00 
QuestionCreate 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 3:45
Miguel Quintanilla16-May-13 3:45 
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 
I have done this on TOAD for oracle:

-- 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=> '???????', HERE IS MY PROBLEM IS IT POSIBLE TO MAKE A DBLINK TO CONNECTO TO THE OTHER DB AND RETRIEVE INFORMATION FROM A TABLE AND PAST IT ON TO SIMILAR TABLE ON THIS DB. AND PUT A FIELD DNM_SINC TO 'YES' WHEN IN DEFAULT IS NO?
program_action=> '??????????????',
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;
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 
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 

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.