Skip to Main Content

Analytics Software

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!

OAC - Connection to database is failing

Mark.ThompsonNov 21 2017 — edited Dec 4 2017

Folks, I need some ideas.  This is a problem that just showed up in our OAC environment within the past 2 days.  Prior to that, everything worked well.

I have 8 subject areas in my repository.  Seven of them work fine.  Any time I try to execute any query against the other one, I get this message:

Error Codes: OPR4ONWY:U9IM8TAC:U9IM8TAC:U9IM8TAC:U9IM8TAC:U9IM8TAC:OI2DL65P

State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. (HY000)

State: HY000. Code: 43113. [nQSError: 43113] Message returned from OBIS. (HY000)

State: HY000. Code: 43119. [nQSError: 43119] Query Failed: (HY000)

State: HY000. Code: 17001. [nQSError: 17001] Oracle Error code: 1012, message: ORA-01012: not logged on Process ID: 8536 Session ID: 314 Serial number: 53019 at OCI call OCIStmtExecute. (HY000)

State: HY000. Code: 17010. [nQSError: 17010] SQL statement preparation failed. (HY000)

  • The subject area passes a consistency check.
  • If I right-click ... View Data in the physical layer of the repository, I see data, so I know the connection pool credentials are correct.

I do not know if this is related or not, but this additional problem has shown up along with the first one: None of my session variables are getting set when I sign in.  However, I test the initialization block while in the repository, the SQL executes correctly and I see what I expect.

And one more bit of fun: I have even rolled back to a repository that was active 3 weeks ago.  And the same failures are appearing.  Until 2 days ago, everything was running well.  Rolling back to a repository that worked 3 weeks ago should get rid of whatever is wrong, UNLESS something is goofy in the application itself.

Comments

The rule you have described will work if "the order total" is an attribute on the Line Items entity, which is the parent of the PartsDetails relationship. If you are getting the error message described you should do the following:

1. check that the relationship text for Line ITems --> PartDetails is "the PartDetails"

2. check that you have a number or currency attribute with the text "the order total" on the Line Items entity.

3. If you are rely on an automatically created attribute, you should change the attribute to "the Line Items order total". If you include the text of an entity in an attribute, the automatically created attribute will be placed in the correct entity, and then the InstanceSum statement will be correct for the attribute.

Cheers

Frank

ParthibHW

Hi Frank, It is not working. If I flatten the structure keep 1 entity (line item details) under global, InstanceSum works fine. For nested datamodel relationship, instanceSum not working.

PathhibHW,

This is almost certainly becuase the rule is trying to create the attribute "the order total" on the global entity, in this case it cannot sum across all line items, all part details.

Have a look at my suggestions 2. and 3. make either of those changes and your rule should work.

Cheers

Frank

ParthibHW

Hi Frank, Thanks a lot. It is working now. Can you please share the scenario for "Reasoning across entity instances" ForScope statement. Thanks.

Answer

Glad to hear you got it working.

Due to quirks of our rule parser, you can't sum across a deep relationship structure in one rule using scope operations. However with a few itermediate attributes it becomes pretty simple.

To sum all the PartDetails of a quote. I would use the following two rules:

the line item's total = instancesum(the PartDetails, the PartDetails ItemPrice)

the quote's total = instancesum(the line items, the line item's total)

You have to sum the totals across one relationship at a time.

Cheers

Frank

Marked as Answer by ParthibHW · Sep 27 2020
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details