Scheduled job not executing my PLSQL block [closed] - sql

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I have a PLSQL block that is supposed to insert rows in a table and it works fine. I am trying to create a scheduled job on SQL Developer so that it can run the block, say every day.
I created the job and embedded the PLSQL block within it but it seems as if it isn't working.
There are no errors but nothing is being inserted in the table.
Any thoughts?

Verify the job status:
SELECT job_name, status, error#
FROM user_scheduler_job_run_details
ORDER BY job_name;

Related

Error in Querying (SQL Server) [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I cannot do queries. I have pretty much set up everything correctly
You have selected Database to be master. Select the appropriate Database where your table exists.
In this case, select 'sqlexpress', database

Why do i get a syntax error at or near "alter"? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I am using PostgreSQL and just got this error. Here is my code
alter table seatbooking
add foreign key (BookingId)
references FlightBooking(BookingId);
All I get is:
ERROR: syntax error at or near "alter"
Can someone help me? thanks.
Code looks correct so it's probably a copy paste error in your client. Just try to retype the entire thing in a new window. (don't copy paste)

SQL Server : columns leaving blank spaces in it [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I have a problem with a database hosted by Microsoft SQL Server 2008 R2.
I made a table with some varchar(length) columns.
The problem is, when I insert anything in it, it leaves "blank spaces" in the end of the column, messing everything up.
So the columns practically looks like this =
some_value _________
(__ = blanks)
Sometimes the blank spaces are even longer...
And I cannot delete them, cause even when deleting them, they get back in place.
What is it the issue?
Is the varchar(length) too high?
The fact is I cannot set it shorter, cause the value I'm going to insert in the table isn't fixed in length..
Any fix?

Syntax Inquiry on usage of LIKE [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I have a table called programmes and an attribute called PROGRAMMES_COURSE. One of the course is engineering.
If I were to find the engineering field just by typing eng,what syntax do I use?
I have tried this but I know it's wrong
SELECT * FROM programmes WHERE PROGRAMMES_COURSE LIKE 'eng%'
SELECT *
FROM PROGRAMMES
WHERE PROGRAMMES_COURSE LIKE 'eng%'
This query should work without any problems. If it does not find what you need, you should provide more information so we can find out where the problem could be.
Try this
SELECT *
FROM PROGRAMMES
WHERE PROGRAMMES_COURSE LIKE '%eng%'

Execute sql-statement once at date x [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to have an sql update-statement executed once at date x. How can I achieve this on an Oracle 10g database?
EDIT:
My aim is to fire an update statement every day. Why? I have a tiny mistake in my application, that can be 'temporarily fixed' with this statement (since I only have db-access till the real fix will happen).
Jonny
Consider DBMS_SCHEDULER. It is meant for running jobs periodically, but you can set up your pl/sql job script to suspend or cancel the job entry after your run-once job ends successfully.
http://docs.oracle.com/cd/B28359_01/server.111/b28310/scheduse.htm
You can use Crontab to schedule a task to be executed at given day/time.
See: http://en.wikipedia.org/wiki/Crontab