User f698d0529d
06-07-2005 16:59:30
Hello
I have had a couple of problems installing Jchem cartridge 3.0.13 on a server. There was previously 3.0.11 running on there, which I uninstalled first. See below for my steps. The step I am currently stuck on is step 8, at the bottom of this message, so you may wish to look at that first, and then read the rest to see what other problems I had in case they are related.
This is the first time we have tried to install 3.0.13 on any machine. We have 3.0.12 running successfully on another server, but I have not tried that on this server.
Thanks
Mark
Info -
Red Hat Enterprise Linux AS release 3 (Taroon)
Kernel 2.4.21-4.ELsmp on an i686
Oracle 10.1.0
Tomcat 4.1.30
JChem version: 3.0.13
JChem Streams version: 3.0.13
So, steps
1. Copied across jchem3[1].0.13.tar.gz file to server. Renamed existing jchem folder in Oracle user home directory to jchem3.0.11. Extracted tar, resulting in new jchem directory.
2. Shutdown tomcat.
3. Deleted webapps/jchemstreams directory from tomcat home using rm -rf and deleted jchemstreams.war from tomcat home.
4. The next step was to drop indexes which used Jchem, as well as PL/SQL procedures which used Jchem.
Indexes
Ran this SQL, which generated a list of SQL statements to drop indexes
select 'drop index ' || di.OWNER || '.' || di.INDEX_NAME || ';' from dba_indexes di where di.ITYP_OWNER = 'JCHEM';
However, this did not work - the uninstall script later complained that it could not drop an indextype which had dependent indexes. So I dropped the Jchem user altogether.
PL/SQL procedures. I don’t know how to find all PL/SQl which uses Jchem. I did try querying dba_source using like, but it was not satisfactory. I was satisfied that since Jchem user was dropped, these PL/SQL procs were simply invalid and would need recompiling later.
As a matter of suggestion, it is extremely inconvenient to drop all PL/SQl source which uses Jchem, as of course it first has to be backed up. If this is not absolutely necessary, you might suggest an alternative.
5. The next step was to run uninstall.sh. As mentioned above, I had dropped Jchem, so I recreated it to run the script. I know this was pointless, but I did it to be sure.
CREATE USER JCHEM
IDENTIFIED BY VALUES xxx
DEFAULT TABLESPACE DATA_JCHEM
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK;
-- 3 Roles for JCHEM
GRANT DBA TO JCHEM;
GRANT CONNECT TO JCHEM;
GRANT RESOURCE TO JCHEM;
ALTER USER JCHEM DEFAULT ROLE ALL;
-- 13 System Privileges for JCHEM
GRANT DROP ANY TABLE TO JCHEM;
GRANT CREATE ANY INDEX TO JCHEM;
GRANT CREATE ANY TABLE TO JCHEM;
GRANT DELETE ANY TABLE TO JCHEM;
GRANT DROP ANY TRIGGER TO JCHEM;
GRANT INSERT ANY TABLE TO JCHEM;
GRANT SELECT ANY TABLE TO JCHEM;
GRANT UPDATE ANY TABLE TO JCHEM;
GRANT DROP ANY SEQUENCE TO JCHEM;
GRANT CREATE ANY TRIGGER TO JCHEM;
GRANT CREATE ANY SEQUENCE TO JCHEM;
GRANT SELECT ANY SEQUENCE TO JCHEM;
GRANT UNLIMITED TABLESPACE TO JCHEM;
Then I ran uninstall.sh, which obviously had lots of error messages about stuff that did not exist.
6. Then, copy the new jchemstreams.war to tomcat/webapps and all the jar files in jchem/lib to tomcat/shared/lib. Did that, as verified below
[oracle@uksap12 lib]$ pwd
/home/oracle/tomcat/jakarta-tomcat-4.1.30/shared/lib
[oracle@uksap12 lib]$ ls -l
total 10788
-rw-r--r-- 1 oracle oinstall 218630 Jul 6 15:55 batik-core.jar
-rw-r--r-- 1 oracle oinstall 87991 Jul 6 15:55 chart.jar
-rw-r--r-- 1 oracle oinstall 1461081 Nov 28 2004 classes12.jar
-rw-r--r-- 1 oracle oinstall 456914 Jul 6 15:55 dom4j.jar
-rw-r--r-- 1 oracle oinstall 8780486 Jul 6 15:55 jchem.jar
[oracle@uksap12 webapps]$ ls -l
total 36
-rw-r--r-- 1 oracle oinstall 697 Jan 25 2004 admin.xml
drwxr-xr-x 6 oracle oinstall 4096 Jan 25 2004 examples
drwxr-xr-x 4 oracle oinstall 4096 Jul 6 15:56 jchemstreams
-rw-r--r-- 1 oracle oinstall 5826 Jul 6 15:49 jchemstreams.war
-rw-r--r-- 1 oracle oinstall 435 Jan 25 2004 manager.xml
drwxr-xr-x 3 oracle oinstall 4096 Dec 7 2004 ROOT
drwxr-xr-x 11 oracle oinstall 4096 Dec 7 2004 tomcat-docs
drwxr-xr-x 3 oracle oinstall 4096 Dec 7 2004 webdav
[oracle@uksap12 webapps]$ pwd
/home/oracle/tomcat/jakarta-tomcat-4.1.30/webapps
7. Start tomcat and navigate to the url for jchemstreams.
Did that. The first time, there was an Apache error. I thought I would try the whole installation from the start, including extracting the tar and dropping the jchem user again, and this went away. But I have attached it in case it gives you a clue. (attached html file)
Anyway, after this problem was resolved by reinstallation, I can now see the correct Jchem version in this web site.
8. Run the install.sh, supplying the Jchem user and the url of the jchemstreams web site.
This is where I am stuck. The script seems to run for about 15 minutes, outputting the following few lines only
[oracle@uksap12 cartridge]$ ./install.sh jchem/jchem@evskdev http://uksap12:808
9/jchemstreams
Loading Java classes into Oracle Server.
This process can take several minutes.
+ /u01/app/oracle/product/10.1.0/db_1/bin/loadjava -force -user jchem/jchem@evskdev ../lib/dom4j.jar
However, then it fails, outputting several hundred lines as shown in the attached txt file.
I have had a couple of problems installing Jchem cartridge 3.0.13 on a server. There was previously 3.0.11 running on there, which I uninstalled first. See below for my steps. The step I am currently stuck on is step 8, at the bottom of this message, so you may wish to look at that first, and then read the rest to see what other problems I had in case they are related.
This is the first time we have tried to install 3.0.13 on any machine. We have 3.0.12 running successfully on another server, but I have not tried that on this server.
Thanks
Mark
Info -
Red Hat Enterprise Linux AS release 3 (Taroon)
Kernel 2.4.21-4.ELsmp on an i686
Oracle 10.1.0
Tomcat 4.1.30
JChem version: 3.0.13
JChem Streams version: 3.0.13
So, steps
1. Copied across jchem3[1].0.13.tar.gz file to server. Renamed existing jchem folder in Oracle user home directory to jchem3.0.11. Extracted tar, resulting in new jchem directory.
2. Shutdown tomcat.
3. Deleted webapps/jchemstreams directory from tomcat home using rm -rf and deleted jchemstreams.war from tomcat home.
4. The next step was to drop indexes which used Jchem, as well as PL/SQL procedures which used Jchem.
Indexes
Ran this SQL, which generated a list of SQL statements to drop indexes
select 'drop index ' || di.OWNER || '.' || di.INDEX_NAME || ';' from dba_indexes di where di.ITYP_OWNER = 'JCHEM';
However, this did not work - the uninstall script later complained that it could not drop an indextype which had dependent indexes. So I dropped the Jchem user altogether.
PL/SQL procedures. I don’t know how to find all PL/SQl which uses Jchem. I did try querying dba_source using like, but it was not satisfactory. I was satisfied that since Jchem user was dropped, these PL/SQL procs were simply invalid and would need recompiling later.
As a matter of suggestion, it is extremely inconvenient to drop all PL/SQl source which uses Jchem, as of course it first has to be backed up. If this is not absolutely necessary, you might suggest an alternative.
5. The next step was to run uninstall.sh. As mentioned above, I had dropped Jchem, so I recreated it to run the script. I know this was pointless, but I did it to be sure.
CREATE USER JCHEM
IDENTIFIED BY VALUES xxx
DEFAULT TABLESPACE DATA_JCHEM
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK;
-- 3 Roles for JCHEM
GRANT DBA TO JCHEM;
GRANT CONNECT TO JCHEM;
GRANT RESOURCE TO JCHEM;
ALTER USER JCHEM DEFAULT ROLE ALL;
-- 13 System Privileges for JCHEM
GRANT DROP ANY TABLE TO JCHEM;
GRANT CREATE ANY INDEX TO JCHEM;
GRANT CREATE ANY TABLE TO JCHEM;
GRANT DELETE ANY TABLE TO JCHEM;
GRANT DROP ANY TRIGGER TO JCHEM;
GRANT INSERT ANY TABLE TO JCHEM;
GRANT SELECT ANY TABLE TO JCHEM;
GRANT UPDATE ANY TABLE TO JCHEM;
GRANT DROP ANY SEQUENCE TO JCHEM;
GRANT CREATE ANY TRIGGER TO JCHEM;
GRANT CREATE ANY SEQUENCE TO JCHEM;
GRANT SELECT ANY SEQUENCE TO JCHEM;
GRANT UNLIMITED TABLESPACE TO JCHEM;
Then I ran uninstall.sh, which obviously had lots of error messages about stuff that did not exist.
6. Then, copy the new jchemstreams.war to tomcat/webapps and all the jar files in jchem/lib to tomcat/shared/lib. Did that, as verified below
[oracle@uksap12 lib]$ pwd
/home/oracle/tomcat/jakarta-tomcat-4.1.30/shared/lib
[oracle@uksap12 lib]$ ls -l
total 10788
-rw-r--r-- 1 oracle oinstall 218630 Jul 6 15:55 batik-core.jar
-rw-r--r-- 1 oracle oinstall 87991 Jul 6 15:55 chart.jar
-rw-r--r-- 1 oracle oinstall 1461081 Nov 28 2004 classes12.jar
-rw-r--r-- 1 oracle oinstall 456914 Jul 6 15:55 dom4j.jar
-rw-r--r-- 1 oracle oinstall 8780486 Jul 6 15:55 jchem.jar
[oracle@uksap12 webapps]$ ls -l
total 36
-rw-r--r-- 1 oracle oinstall 697 Jan 25 2004 admin.xml
drwxr-xr-x 6 oracle oinstall 4096 Jan 25 2004 examples
drwxr-xr-x 4 oracle oinstall 4096 Jul 6 15:56 jchemstreams
-rw-r--r-- 1 oracle oinstall 5826 Jul 6 15:49 jchemstreams.war
-rw-r--r-- 1 oracle oinstall 435 Jan 25 2004 manager.xml
drwxr-xr-x 3 oracle oinstall 4096 Dec 7 2004 ROOT
drwxr-xr-x 11 oracle oinstall 4096 Dec 7 2004 tomcat-docs
drwxr-xr-x 3 oracle oinstall 4096 Dec 7 2004 webdav
[oracle@uksap12 webapps]$ pwd
/home/oracle/tomcat/jakarta-tomcat-4.1.30/webapps
7. Start tomcat and navigate to the url for jchemstreams.
Did that. The first time, there was an Apache error. I thought I would try the whole installation from the start, including extracting the tar and dropping the jchem user again, and this went away. But I have attached it in case it gives you a clue. (attached html file)
Anyway, after this problem was resolved by reinstallation, I can now see the correct Jchem version in this web site.
8. Run the install.sh, supplying the Jchem user and the url of the jchemstreams web site.
This is where I am stuck. The script seems to run for about 15 minutes, outputting the following few lines only
[oracle@uksap12 cartridge]$ ./install.sh jchem/jchem@evskdev http://uksap12:808
9/jchemstreams
Loading Java classes into Oracle Server.
This process can take several minutes.
+ /u01/app/oracle/product/10.1.0/db_1/bin/loadjava -force -user jchem/jchem@evskdev ../lib/dom4j.jar
However, then it fails, outputting several hundred lines as shown in the attached txt file.