Query executed by JOB on pgAgent fails - windows

I am a beginner database user.
I want to initialize the sequence of a database on the first day of every month.
So, I created JOB through pgAgent and run a query every minute for the test.
However, queries always fail.
I want to see the log, but I don't know where the pgAgent log is, and nothing is displayed in the pgAdmin log.
I installed postgreSQL 14.4 on windows 10 and installed pgAgent through stack builder.
The database server runs on localhost, and the port is 5432 postgres user is superuser.
Please help me.
statics image
database
pgAgent job
step general
step code

Related

Steps to create dag in airflow by connecting to remote database

I am learning airflow and I have to create a dag that will connect to a remote oracle database and insert data from one table to another. Below is what I have done till now
After installation, ran pip install 'apache-airflow[oracle]' so that I can use oracle operator
Created connection string from UI to connect to remote database
Then I wrote my first dag but it didn't seem to run.
Before I try to find why it's not running, I want to make sure if I have to do some other steps that I may have skipped like some changes in airflow.cfg file especially in sql_alchemy_conn (this file I found in my home directory) or if cx_oracle is required to be installed so that I can connect to remote database or just connection string is needed (step 2 above).
There are so many things mentioned about airflow but yet not clear on the exact steps. If someone could help me in this that will be much appreciated. These might be the basics but I am stuck with what to do from end to end. Please help
Thank you!!

Oracle xe 18c database shutdowns automatically

I have installed Oracle xe 18 with apex and ORDS successfully on Centos 7, every thing runs fine but after certain inactivity on database like 6/8 hours later Oracle stopped and ORDS throws 503 error code.
Once I start the database up, all are normal then.
Can you please suggest me how to keep Oracle up all time/ unless manually shutdown VPS or the like?
Thanks
After your database is restarted, connect with an ADMIN level user, and use SQL Developer to inspect the Alert Log - you'll find this as one of the standard reports we ship in the Database Administration section.
Look for things like 'fatal' 'ora-600' 'abort' - this should clue you in as to what is happening.
We'll assume you don't have a job scheduled on Centos that shuts down the database.

TNS-connection closed error while updating oracle tables from Informatica powercenter

I often get below error while running some sessions in Informatica Powercenter. The session is supposed to insert/update some records in oracle tables.
Username USER123 DB Error -1
Database driver Error...
Function Name: Logon
ORA-12537: TNS-connection closed
Database Error: Failed to connect to database using user [USER123] and connection string [ORCL123]
This is totally random. I have ran the same sessions sometimes smoothly without a singe hitch. But sometimes the error comes back again and again. Whenever it occurs, stays for 5 mins max, means if I restart the session immediately after failure, it will fail again. But if I wait for 5 mins and restart them again, it runs successfully. But the only problem is it comes back again in another half an hour or so.
Can somebody enlighten me to get a probable resolution for the error?
Do check the number of connections allowed on the Oracle instance if they are exceeding intermittently by other users and refusing your user connection from Informatica.

can't start oracle service in windows

I'm taking DB prog. class and we are required to use Oracle+ Oracle sql dev. I so far I got 3 DB in oracle each with a connection from Oracle sql dev.
In windows services I only have one service called OracleDBConsole"MY1stDB name" there's no similiar services for the other DBs I created.
When I try to start this service I receive error as the picture
I can connect through the connections in Oracle sql dev. to the other DB I created except the 1st one
Does anybody have an idea on this issue
As one of affected people, I finally found solution:
If this appears, run lsnrctl start as an administrator to start the listener.
Most probably your listener.ova and tnsnames.ova are improperly set.
OK you installed 3 instances on same machine. There are two possibilities.
They are all set up to use default ports so when one is started no other can start due to port conflict. In that case you need to reconfigure ports following documentation
Second possibility is you already have different ports for your instances. In that case please check your connection definitions if they use proper ports. First will probably need default 1521 but others needs other ports. You may try 1522 as when during instalation 1521 was used it could took next free. But generally you should go to NETWORK/ADMIN/listener.ora edit file and check what port is used. Then properly define connection in client tool.
But as said in comments. Installing 3 instances make no sense unless you're trying to do some study with DBlinks simulations.
Mentioned service relates to oracle enterprise manager service.you have this because it configured for your database. but to troubleshoot it please check its logs in %ORACLE_HOME%**HOSTNAME_DBNAME**\sysman\log*. check there logs and send to investigate.
regards,
Mohsen
There is insufficient detail about the error to know what the problem is, however my guess is that subsequent instances are attempting to use the same resource as the already started instance, most likely the port.
Nevertheless, your problem can be solved by not creating multiple instances of Oracle, but rather creating multiple databases in the one Oracle instance.
It is a virtual certainty that your teacher did not intend you to start multiple instances of Oracle.

Pre-Installation Check Mantis: can't install

I am trying to install Mantis on my server. Problem is that I can't seem to get pass the Pre-Installation Check step. I click on "Install/Upgrade Database", and displays all "GOOD". Then it says:
Database Creation Suppressed, SQL Queries follow
<< here it prints a lot of sql queries, mainly create and alter tables >>. When I say this the first time, I went to MySQL Workbench, (the database bugtracker was already created), and ran the script given. Thereby, creating all the needed tables.
Then it says:
Your database has not been created yet. Please create the database, then install the tables and data using the information above before proceeding.
It checks a few more things (all with result "GOOD") and finally it displays this message:
Install was successful.
Continue to log into Mantis
The previous word "Continue" appears as a hyperlink leading to login_page.php. When I click it, it leads right back to this pre installation check page.
The thing is, the database is created! And the first time I encountered the sql queries I ran them, so the tables are indeed created.
Attempting to connect to database as admin GOOD
Attempting to connect to database as user GOOD
Checking Database Server Version
Running mysql version 5.5.25
My PHP version is 5.3.14.
The Mantis version i'm trying to install is 1.2.11.
Any ideas as in what it is I am doing wrong? Or any other piece of information I could provide?
I realize now that this is not the best place for this question. Nonetheless, in case someone else happens tu stumble across this, I wanted to let know the only workaround I could find was installing another Mantis version: 1.1.1. Very old, but it worked!

Resources