Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BUG - Cannot copy materialized view to offline database - JDeveloper 11GP4

ow005960Sep 9 2008 — edited Sep 9 2008
I was trying to copy a schema with a lots of materialized views from into an off-line database whene I got this stack trace below

09-Sep-2008 08:09:36 oracle.jdbc.driver.T4CConnection assertLoggedOn
SEVERE: Throwing SQLException: 430
09-Sep-2008 08:21:47 oracle.ide.db.transfer.TransferManager prepare
SEVERE: Prepare failed
java.lang.IllegalArgumentException: No enum const class oracle.javatools.db.ora.MaterializedView$Staleness.IMPORT
at java.lang.Enum.valueOf(Enum.java:192)
at oracle.javatools.db.ora.MaterializedView$Staleness.valueOf(MaterializedView.java:175)
at oracle.javatools.db.ora.MaterializedViewBuilder._parseStaleness(MaterializedViewBuilder.java:378)
at oracle.javatools.db.ora.MaterializedViewBuilder.fillInBaseProperties(MaterializedViewBuilder.java:107)
at oracle.javatools.db.ora.MaterializedViewBuilder.fillInProperties(MaterializedViewBuilder.java:63)
at oracle.javatools.db.ora.MaterializedViewBuilder.fillInObject(MaterializedViewBuilder.java:54)
at oracle.javatools.db.AbstractDBObjectBuilder.buildObject(AbstractDBObjectBuilder.java:36)
at oracle.javatools.db.dictionary.DictionaryDBObjectBuilder.buildObject(DictionaryDBObjectBuilder.java:63)
at oracle.javatools.db.AbstractSchemaObject.checkInit(AbstractSchemaObject.java:168)
at oracle.javatools.db.AbstractSchemaObject.checkInit(AbstractSchemaObject.java:205)
at oracle.javatools.db.AbstractSchemaObject.copyToImpl(AbstractSchemaObject.java:64)
at oracle.javatools.db.ora.MaterializedView.copyToImpl(MaterializedView.java:378)
at oracle.javatools.db.ora.MaterializedView.copyTo(MaterializedView.java:367)
at oracle.javatools.db.AbstractDBObject.copyTo(AbstractDBObject.java:89)
at oracle.jdevimpl.offlinedb.transfer.OffToOffPolicy.copyForTransfer(OffToOffPolicy.java:181)
at oracle.ide.db.transfer.TransferManager.prepare(TransferManager.java:155)
at oracle.ide.db.transfer.TransferManager.prepareAndTransfer(TransferManager.java:374)
at oracle.ideimpl.db.transfer.TransferRunnable.run(TransferRunnable.java:79)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:615)
at java.lang.Thread.run(Thread.java:595)

Environment
Windows XP Professional
Studio Edition Version 11.1.1.0.0
Build JDEVADF_MAIN.OTN4_GENERIC_080429.0116.4949
Oracle IDE 11.1.1.0.22.49.49
java.runtime.version 1.5.0_11-b03

Database 10g R2 (10.2.0.3.0)

Comments

Karthick2003

First step can you describe TABLE1 and TABLE2?

2611484

I already edit the question

Karthick2003
Describe means like this

SQL> desc emp
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 EMPNO                                     NOT NULL NUMBER
 ENAME                                              VARCHAR2(6)
 JOB                                                VARCHAR2(9)
 MGR                                                NUMBER
 HIREDATE                                           DATE
 SAL                                                NUMBER
 COM                                                NUMBER
 DEPTNO                                             NUMBER

SQL> desc dept
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 DEPTNO                                    NOT NULL NUMBER
 DNAME                                              VARCHAR2(10)
 LOC                                                VARCHAR2(8)

SQL>
2611484

I posted the desc of table

Karthick2003

>  and c.status like 'ANSWERED%'

I dont see STATUS column in Table2

2611484

sorry i accidentally erase, now there's a status table

Karthick2003

Ok got it, Change this

select 'Data'
       ||','||to_char(d.dtime_day,'MM/dd/yyyy')
       ||','||
sg1_cnt

To

select 'Data'
       ||','||dtime_day

       ||','||sg1_cnt

dtime_day is already converted in the inner query.

2611484

i changed it already but i got zero results only, which is not right. each item have large total of result

Karthick2003

> i changed it already

Should I use my crystal ball to find it out?

> but i got zero results only, which is not right. each item have large total of result

Without your data i cant do much.

Moazzam

select 'Data'

||','||to_char(d.dtime_day,'MM/dd/yyyy')

||','||sg1_cnt

||','||sg2_cnt

||','||sg3_cnt

||','||sg4_cnt

||','||sg5_cnt

||','||sg6_cnt

||','||sg7_cnt

||','||sg8_cnt

||','||sg9_cnt

||','||sg10_cnt

In the above select statement, which tables contains the columns (sg1_cnt, sg2_cnt, sg3_cnt.....etc), I think by removing these columns from SELECT shall fix the issue.

Karthick2003

Those come from the PIVOT. That is fine.

2611484

i change the sql script, but i got still zero results

Karthick2003

33795304-702b-48ff-b4ba-e896b1db94db wrote:

i change the sql script, but i got still zero results

That means some of your conditions are failing. As said already without knowing what's in the table cant help. Just check you join and where conditions.

padders

Just to be clear, are you asking us to tell you why a query we haven't seen returns no rows based on data we haven't seen?

2611484

I just posted some data of each table coumn

2611484

I already edited my post - sql sript and added more info about table columns

1 - 16
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 7 2008
Added on Sep 9 2008
1 comment
475 views