Pre-Installation Check Mantis: can't install - installation

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!

Related

Not able to create connection on oracle sql developer tool

I'm trying to create a new connection on the Oracle SQL Developer tool but I'm not able to. I just simply download the latest version of oracle SQL developer tool from the oracle site and unzip the folder and run. I haven't set any password or anything because there is nothing to do so.
Please guide how I can make a local connection on oracle Sql developer tool.
Well based on what you have described, you only installed SQL Developer, without having the Oracle Client installed on your device.
To be able to connec to to something in SQL Developer, you need to have a database to which you would like to connect. That basically means that either you need to install one, or you have one available in your System. But I will assume that you are new to this and have no database to connect to.
First things first, you will need to install the Oracle Client. A pretty good example can be found on here. You have a video tutorial which contains a step by step guide.
Once you finished installing the Oracle Client, you can proceed with unlocking the basic HR Schema, or create your own DB Schema. Again, a tutorial on how to achieve this step can be found here.
There are a few steps to follow, but in the end, if you follow them accordingly, you will be able to make a local connection on oracle using SQL Developer. Besides that, both the links will provide you with some explanation as well for each particular task.

Is Oracle Database Supported in Joomla?

I would like to use Oracle database instead of MySQL in Joomla. Is this possible with Joomla, is there a workaround or a solution on how to implement Oracle database with Joomla? Any information will be greatly appreciated.
It is said that it can be done, but it is not a job for beginners and took those guys 3 working days to do it.
Here's why that combination doesn't work by default:
The database and table creation script does not work without modification.
The connection and the database class are written to connect to MySQL and not to Oracle (so they all use MySQL functions).
Some of the extensions use native MySQL functions directly, instead of connecting using the Joomla Database interface (class).
This is what they did to make it work:
We fix the SQL installation script to accommodate the Oracle database in case of a new installation. In case of an existing installation, we export all the database, as well as its data to a SQL file, and then we modify the SQL file (using find and replace) to make it work with an Oracle database.
We load the modified installation file or the modified exported SQL file into the Oracle database.
We then create a copy of the Joomla database class, and then we modify all the functions to work with Oracle instead of MySQL.
We ensure that the Oracle drivers are properly installed and loaded by the php.ini file.
We rename the original MySQL database (you will know in the next step why) to something like database_name_old.
We switch to the new database class and fully test the website to see if some extensions are not working. If an extension ceases to work then it is a sign that this extensions is calling the original MySQL database (which no longer exists because it was renamed) directly.
Hopefully, you aren't a beginner and those guidelines will help you do it. Otherwise, check how much it might cost by visiting the page.

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 SQL Developer - Data Miner Repo - Task failed

I've been fighting against oracle sql developer for about two days and I just can't get the thing to work.
I would like to learn more about data mining and take a look at their examples and work threw their tutorials, but I cant even get the thing setup.
What I did:
Installed Oracle 12_1 database + oracle_examples.
I then created an administrator account via the oracle sql developer.
connection name: admin
username: sys
password: password
Role: sysdba
SID: orcl
Everything else was left as it is.
I then had to install all the example .sql files manually.
I followed the guide from here: Oracle Install Example Schemas
I did everything exactly the same as the guide told me to do, except I had to do this "hack" command which allowed me to create users. Else I would always get the
ORA-65096: invalid common user or role name
alter session set "_oracle_script"=true;
The new users now show up in every connection that I create in my SQL Developer under "other users". (HR, OE, etc..)
Now I created a new user "dmuser" like the guide told me to do here: (yes - with sql plus)
Oracle create a datamining user
Now I wanted to install the data miner repo. Which should be very easy:
Tools, data miner, make visible. And the data miner window showed up. I then added my dmuser connection, double click dmuser to install the data miner repository. I then press start to install the repo and then it says "Task Failed" with the MOST useless error message I have ever seen:
anonymous block completed
anonymous block completed
Drop public synonyms created by ODMRSYS.
anonymous block completed
anonymous block completed Total Number of Objects: 0
Total Number of Objects Dropped: 0
Total Number of Objects Failed to Drop: 0
Can anyone help me resolve this issue? My guess would be that the "hack" command which I used to create all the users messed something up, but I'm not sure. I'm very new to Oracle, so I have no idea what I'm actually doing here, so please have some mercy on me.
Thanks in advance.
Hope someone can fix this mess.
Aight, be prepared for a complicated answer...
Sql developer exectues a .sql file to install the data miner repo.
The sql is named "installodmr.sql". Found the info here:
Install repo by script
I had a look at the script and what it does. It opens more scripts which insert tables, and users and grant privileges etc...
The problem why the script would not execute correctly was due to a couple of reasons.
1) As mentioned in my question, I can't just create a user, I have to type the command:
alter session set "_oracle_script"=true
The script calls other scripts that then want to create user, which in my case was not allowed and caused the ORA-65096 error.
So I had to insert the alter ... command before the script called another .sql file.
2) The path to the .sql files was not correctly set and it could not find the files which caused problems. They where referenced like this:
##file.sql
I changed it to the direct path:
#C:\Oracle\product\12.1.0\home\sqldeveloper\dataminer\scripts\file.sql
I let the script run and it worked.
Now data miner repo is installed.
Wuhey! :)

oracle - Schemas issues when migration from discoverer to OBIEE

I'm working on migrating some reports from Oracle Discoverer to OBIEE. I've already exported the layouts from discoverer to OBIEE. I have all I need in the OBIEE Admin tool now, but when I try to perform this operation:
I got this message:
I've read in many forums that this is because of the query (enter link description here) but I've executed the query in SQL Developer and all is fine.
Any idea?
Thanks,
I can see from the icon on your object that it is an Opaque View that your trying to run View Data on.
This is probably because of a syntax issue in your opaque view. Make sure the code in the opaque view doesn't end with a semi-colon or slash, that will cause problems. Try eliminating any blank lines, if there are any. However, without knowing exactly the syntax of the code it's impossible to say exactly what the cause is.
It's also possible that there is a connection script attached to the connection pool you are using to View Data, running on connection or before execution with bad syntax.
Otherwise have a look in the Admin Tool log to see if there's more information about what is causing the error. It will usually contain more detailed information than is passed back through the GUI.

Resources