Skip to Main Content

APEX

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!

Fetch Variable in Stored in Table

Alter BoyAug 22 2018 — edited Aug 22 2018

Hi,

So I have a Table, not going to go into too much detail about it because it is fairly irrelevant. All that needs to be known is there is a Varchar2 column, Content, that I intend to be displayed in a text area. So for example, the text may read "My name is Matthew" except I want it to read "Matthew" off of the page that I'm displaying it. Let's say I have a Page with two page items and that's it. The first page item, P129_NAME, holds the value 'Matthew'. The second page item calls Content from the Table. I tried to put, in my Content, "My name is :P129_NAME" so that whoever's name is in that Page Item at that time will be displayed in the Text Area. However, when called it literally displays ":P129_NAME" instead of "Matthew". I also tried &P129_NAME. and the same thing happens. Is there a work-around this?

Thanks,

Matthew

This post has been answered by fac586 on Aug 22 2018
Jump to Answer

Comments

Sdhamoth-Oracle

You have missed to prefix the path './'.

You need to execute it as:

sudo ./odbc_update.ini.sh /usr/local

What is the error message displayed by isql?

Have you checked whether the TNS setting using SQL*Plus? Were you able to connect to database using SQL*Plus?

Camilo E. Zamorano

Ok, so i executed:

sudo ./odbc_update.ini.sh /usr/local

And i got the same message:

*** ODBCINI environment variable not set,defaulting it to HOME directory!

Can you tell what does that mean?

When i try:

isql OracleODBC-12c user pwd

i get [ISQL]ERROR: Could not SQLConnect

I did sudo nano ~./odbc.ini and changed the following parts:

ServerName=

to

ServerName=localhost/myservicename

i'm trying to connect to a local server using ethernet connection on a lan.

UserID=

to UserID=myuserid

Thanks so much for you help!

Sdhamoth-Oracle

> *** ODBCINI environment variable not set,defaulting it to HOME directory!

It says that the .odbc.ini is created in the default path (i.e. $HOME directory).

> ServerName=localhost/myservicename

If the DB server is not running in the default port 1521, you need to specify the port number too. Best way to troubleshoot this scenario is by using SQL*Plus  to cross the connectivity with the TNS information provided in 'ServerName' attribute in ~/.odbc.ini file.

Camilo E. Zamorano

I tried

isql -v localhost:1521/TNSName user pwd

and i got

[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified

I suppose it's an advance?

3758246

Hey, I'm in the same error now, any update?

Sdhamoth-Oracle

We shouldn't be passing the Oracle ez connection string in unixODBC isql.utility.

Proper syntax for unixODBC isql is :

isql DSN [USER [PASSWORD]] [options]

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

Post Details

Locked on Sep 19 2018
Added on Aug 22 2018
6 comments
285 views