User 579b3160ef
22-10-2016 19:33:56
I'm the Oracle DBA, and trying to upgrade jchem cartridge for developers. We're currently running jchem for Oracle version 6.21 on linux redhat 5.11 and Oracle 12.1.0.2 I've been asked to upgrade to jchem 16.4-25. I've done upgrades in the past with no problem, but today seems to be challenging.
When running the upgrade.sh script and asked for whether to upgrade indexes I tried the ask parameter - have always had developers do rebuild of indexes after upgrade, but thought I'd try it today myself. Figured that since it would ask first I could say yes or no for each. Unfortunately, it didn't get that far. I get the following error :
SEVERE: error
java.lang.UnsupportedOperationException: Index type could not be upgraded. Creation during upgrade process is not supported. Schema: Schema[username=JCC_UPGR_STAGE, cartOwnerName=jchem, isDba=false, connectionString=jdbc:oracle:thin:@localhost:1521:rgntdev], implementation name: JC_IDXTYPE_IM
at chemaxon.jchem.cartridge.install.schema.IndexType.prepareCreatePlan(IndexType.java:217)
at chemaxon.jchem.cartridge.install.schema.Schema.prepareUpgrade(Schema.java:276)
at chemaxon.jchem.cartridge.install.schema.Schema.createUpgradePlan(Schema.java:264)
at chemaxon.jchem.cartridge.install.Upgrader.upgradeSchemaObjects(Upgrader.java:108)
at chemaxon.jchem.cartridge.install.Upgrader.upgrade(Upgrader.java:64)
at chemaxon.jchem.cartridge.install.Upgrader.upgrade(Upgrader.java:57)
at chemaxon.jchem.cartridge.install.UpgradeCmdLine.upgrade(UpgradeCmdLine.java:311)
at chemaxon.jchem.cartridge.install.UpgradeCmdLine.upgrade(UpgradeCmdLine.java:72)
at chemaxon.jchem.cartridge.install.UpgradeCmdLine.main(UpgradeCmdLine.java:769)
I tried rerunning the upgrade with upgrade index: none, but still get the same error. It acted as if it worked except for regeneration of index, so I tried starting up cartridge, but got error that I needed to run 'createAccessControlContext'. I tried that - but received an error that it couldn't find the jcart.jar file. It's not in the cartridge directory!
Any help would be appreciated. Such as, how do I restart a failed upgrade. I tried renaming JChem16425 to JChem16425 _save and starting over. Untarred file to new directory, ran upgrade script saying none to rebuild index, but it seemed to fail even sooner. Same error about unsupported index types.
I seem to be able to run old cartridge, but very slow.
Update: I was able to run call
dbms_java.grant_permission('JCC_BASIC_ROLE', 'SYS:java.security.SecurityPermission', 'createAccessControlContext',''
); successfully.
Just not loadjava -grant '<JCHEM_USER>' -user
jchem/<password>@ORCLjcart.jar
if I try the loadjava call, I get the missing jcart.jar error.
Now if I try a test structure query, I get the following:
chemaxon.jchem.cartridge.sharedorajcsrv.rmi.VersionMismatchException: JChem
version mismatch: 6.2.1 in Oracle, 16.4.25.0 in RMI Server
Does that mean I just need to rebuild index? I don't want to leave system in unusable state (currently I can bring up 6.2.1 so it's usable)
thank you for any help