ERROR ORA-00942 and ORA-04080 while Installing the HR Schema - sqlplus

Newbie here. Trying to setup the hr sample schema on ORACLE12C - CENTOS box but get two error codes.
$ sqlplus connect as sysdba
SQL*PLUS Release 12.1.0.2.0 Production on Tue Jan 31 04:50:15 2017
Enter Password:
Connected to: Oracle Database 12c Enterprise Edition 12.1.0.2.0 -
64bit Production With the Partitioning, OLAP, Advanced Analytics and
Real Application Testing Options.
SQL> #?/demo/schema/human_resources/hr_code.sql
Procedure created.
BEFORE INSERT OR UPDATE OR DELETE ON employees
*
ERROR at line 2: ORA-00942: table or view does not exist
ALTER TRIGGER secure_employees DISABLE
*
ERROR at line 1: ORA-04080: trigger 'SECURE_EMPLOYEES' does not exist.
WARNING: Procedure created with compilation errors.
Warning: Procedure created with compilation errors.
AFTER UPDATE OF job_id, department_id ON employees
*
ERROR at line 2: ORA-00942: table or view does not exist
Commit complete.
Please help. Don't really know what to do from here, Much thanks.

Related

ERROR 1060 (42S21) at line 3: Duplicate column name 'artkit0'

trying to get Azerothcore running with Docker. I have the following error when trying to start up the service:
>> Applying update "2022_06_14_01.sql" '90B07D9'...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1060 (42S21) at line 3: Duplicate column name 'artkit0'
Applying of file '/azerothcore/data/sql/updates/db_world/2022_06_14_01.sql' to database 'acore_world' failed! If you are a user, please pull the latest revision from the repository. Also make sure you have not
applied any of the databases with your sql client. You cannot use auto-update system and import sql files from AzerothCore repository with your sql client. If you are a developer, please fix your sql query.
Could not update the World database, see log for details.
Any help would be greatly appreciated. I'm a total noob to this!
I am receiving the same error. I have tried the various install types and made sure that things were cleaned up before trying again. I even went as far as to reformat and start from scratch. All yield the same as OP:
ERROR 1060 (42S21) at line 3: Duplicate column name 'artkit0'
I found a work around that worked for me. I dropped all the tables within acore_world and ran the server and let it repopulate it.
Update to the latest AzerothCore and try again

Trying to upgrade from postgresql-9.4 to 9.5 after upgrading Fedora 21 to 25

I have recently updated Fedora 21 to 25. I thought I had caught most issues and decided it was time to update Rails and postgresql but I am stuck on the latter.
Postgresql was functioning without visible issues prior to updating to Fedora 25. I can access my database through my Rails application and have CRUD functions so I believe the database is still good.
But, if I try to open postgresql CLI using psql database_name I can not access the database and receive the following error message:
psql: symbol lookup error: psql: undefined symbol: PQsslInUse
I get the same error for anything calling psql, i.e. psql --version gives the same error.
The command postgresql-setup upgrade tells me I am "using obsoleted argument syntax" and states arguments transformed to: postgresql-setup --upgrade --unit postgresql. This generates the following error:
ERROR: Cannot upgrade because the database in /var/lib/pgsql/data is of
version 9.3 but it should be 9.4
When I look at the above directory it appears that I have 2 data directories, the one noted above that holds a file PG_VERSION that stores 9.3 and there is also /var/lib/pgsql/9.4/data that holds a file PG_VERSION that stores 9.4.
So, how do I find out which database version has my current database? If I have been operating on postgresql 9.3 how do I move to 9.4 and then to 9.5 (eventually to 9.6!).

migrate data from TFS 2008 to an already working TFS 2012

I read everything about the upgrade process from TFS 2008 to 2012.
but my situation is a bit diffrent. I need to move data from tfs 2008 (sqlserver 2003) to tfs 2012 (sqlserver 2008 R2) without damaging the TFS 2012 data.
what is the best practice?
Adding some issues:
I am trying to be as cautious as possible without damaging any of the data.
So I have:
1. old server TFS 2008 with sqlserver 2005 which is being used
2 demo server with TFS 2012 and sqlserver 2008 R2 with some collections and projects on it (this is a replica of a server we have and is being used as well).
The main purpose is to transfer all data to the 2012 server and kill the old machine.
what i did was to take a backup from the sqlserver 2005 and restore all the tfs* db's to the demo server .
TfsActivityLogging
TfsBuild
TfsIntegration
TfsVersionControl
TfsWarehouse
TfsWorkItemTracking
TfsWorkItemTrackingAttachments
Afterward I run "tfsconfig import" on the demo server.
TfsConfig Import /SQLInstance:SQLSERVERNAME /CollectionName:DemoImportCollection /confirmed
which fails:
Creating temporary structures... (169 of 502)
[Info #15:45:36.159] [2014-01-14 15:45:33Z][Error] TF400744: An error occurred while executing the following script: UpgradeTestResults_OrcasToDev10Beta1.sql. Failed batch starts on the line 613. Statement line: 23. Script line: 635. Error: 2627 Violation of PRIMARY KEY constraint 'PK__tmp_tbl___1786A43E234A136B'. Cannot insert duplicate key in object 'dbo.tmp_tbl_OrcasTestOutcomeLookUp'. The duplicate key value is (?«ƒ??????????????¢???????????ƒ). (169 of 502)
[Info #15:45:36.159] [2014-01-14 15:45:34Z][Informational] Microsoft.TeamFoundation.Framework.Server.CollectionServicingException: TF400744: An error occurred while executing the following script: UpgradeTestResults_OrcasToDev10Beta1.sql. Failed batch starts on the line 613. Statement line: 23. Script line: 635. Error: 2627 Violation of PRIMARY KEY constraint 'PK__tmp_tbl___1786A43E234A136B'. Cannot insert duplicate key in object 'dbo.tmp_tbl_OrcasTestOutcomeLookUp'. The duplicate key value is (?«ƒ??????????????¢???????????ƒ).
at Microsoft.TeamFoundation.Framework.Server.SqlScriptResourceComponent.ExecuteScripts(List`1 scripts, SqlParameter[] sqlParameters, List`1 serviceVersions, Boolean acquireLock)
at Microsoft.TeamFoundation.Server.Servicing.TFCollection.FrameworkStepPerformer.ExecuteSql(String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.Microsoft.TeamFoundation.Framework.Server.IStepPerformer.PerformStep(String servicingOperation, String stepType, String stepData, ServicingContext servicingContext)
at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation) (169 of 502)
[Warning#15:45:36.596] TF255185: Encountered a warning during operation. Message=[2014-01-14 15:45:34Z] Servicing step Upgrade Test Results failed. (ServicingOperation: UpgradePreTfs2010Databases; Step group: Upgrade.TfsTestManagement).
[Info #15:45:36.627] [2014-01-14 15:45:34Z] Servicing step Upgrade Test Results failed. (ServicingOperation: UpgradePreTfs2010Databases; Step group: Upgrade.TfsTestManagement) (169 of 502)
[Info #15:45:36.627] [2014-01-14 15:45:34Z][Informational] Removing item. Key: TargetRequestContext. (169 of 502)
[Info #15:45:36.627] [2014-01-14 15:45:34Z][Informational] Clearing dictionary, removing all items. (169 of 502)
[Warning#15:45:36.659] TF255185: Encountered a warning during operation. Message=TF255271: The team project collection could not be created. The number of steps before the completion of project creation is: 502. The number of steps completed before the failure was 169..
[Warning#15:45:37.690] Warning Message: [2014-01-14 15:45:34Z] Servicing step Upgrade Test Results failed. (ServicingOperation: UpgradePreTfs2010Databases; Step group: Upgrade.TfsTestManagement)
[Warning#15:45:37.690]
[Warning#15:45:37.737] Warning Message: TF255271: The team project collection could not be created. The number of steps before the completion of project creation is: 502. The number of steps completed before the failure was 169.
[Warning#15:45:37.737]
I have a suspicion that this problem occur due to Hebrew characters in database which translate on the temp import tables as question marks ("?????")
Appreciate any help or direction solving this issue.
Regards
Erez
You can use TFS integration platform for that. It will migrate all the files and history. If you have TFS work items you can migrate those as well(if you use the same Project template on the 2012 server as well)
Two minor points you need to know:
1) After the migration, history will have the Datetime of when you migrate but you can see the actual Datetime in the comments.
2) It will also add an extra text to your comments saying you migrated using the integration platform.
http://tfsintegration.codeplex.com
After trying everything (without touching the real Data) I succeeded.
I decided to split the upgrade process to two 2008-2010 and 2010-2012.
I copied the 2008 TFS db's to the neNew SQLSERVER which is being
used by the TFS 2012
I added another VM with TFS 2010
I run from TFS 2010 the upgrade wizard which identify the 2008 copied db's
The result was a new collection attached to TFS 2010
I detached the collection On the TFS 2012
I run attach collection (the TFS 2010 one) and this upgraded the collection.
The process worked smothly.
Thanks all for the Help
Erez.h

neo4j update old graph.db not cleanly shutdown

I am receiving a "not cleanly shutdown" log message when attempting to open a 2 year old Neo4j database posted on github at https://github.com/IGS/disease-ontology/tree/master/database/neo4j. How do I open/update this database?
Here's how I got it initialized: Downloaded the graph_db.tgz to my local win7-64 machine (neo4j-community-1.9.RC2), extracted the graph.db file to the data subfolder, renamed it graph_ontology.db, and edited the server config file to point to it as follows:
org.neo4j.server.database.location=data/graph_ontology.db
When starting Neo4j, the last entry in the log file is:
2013-05-21 17:23:33.418+0000 INFO [o.n.k.EmbeddedGraphDatabase]: Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#1f91d41b' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#b86527e' was successfully initialized, but failed to start. Please see attached cause exception.: Mismatching store version found (Uknown while expecting v0.A.0) and the store is not cleanly shutdown. Recover the database with the previous database version and then attempt to upgrade
Thanks,
Jeff
Look at the messages.log of the database to determine which neo4j version it was started with last.
In this case it is 1.4
You can get it from here: http://dist.neo4j.org/neo4j-community-1.4.2-windows.zip
You can easily just point the neo4j-shell to it:
create an upgrade.properties that contains: allow_store_upgrade=true
and then use: bin/neo4j-shell -path graph_ontology.db -config upgrade.properties
Here is the converted db for 1.9.GA: https://dl.dropboxusercontent.com/u/14493611/disease_ontology_graphdb-1.9.tgz

TFSConfig Accounts /ResetOwner ... fails

I'm trying to move a TFS Server (see here and here), but everything is not working well. When I get to the Change Ownership step, the following command fails:
TFSConfig Accounts /ResetOwner /SQLInstance:<ServerName> /DatabaseName:<DatabaseName>
The error on the Tfs_Configuration table:
TF30065: An unhandled exception occurred.
The error on the Tfs_DefaultConfiguration table:
TF30040: The database is not correctly configured. Contact your Team Foundation Server administrator.
I skipped the marked transactions, because I could not get it working.
You must remap your TFS database before config your accounts.
Please see following links
RemapDB Command
Account Command

Resources