Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Oracle.ini & FORMS45_PATH

Posted on 1997-12-05
2
Medium Priority
?
892 Views
Last Modified: 2008-02-01
Hi ,

I have a problem here. Whenever I call CALL_FORM(XXX) , the application
will search the default directory in the network drive o:\APP\FORMS.
During development , I want the application to look for the file
in my local drive. Following is the details :


File O:\ORAWIN\ORAWIN.INI
-------------------------------
[Oracle]
ORACLE_HOME=O:\ORAWIN
 :
 :

[FORMS45]
FORMS45_PATH=O:\APP\FORMS;
 :
 :
 :


If I execute CALL_FORM('Form1.FMX', ....) , the form will look for
Form1.FMX in the path O:\APP\FORMS.

If I want the application to look for the form in my own c:\PRJOECT
directory,
and I do not want to hard-code the path to be "C:\PROJECT\FORM1.FMX"
How can I go about doing this ??

Someone told me to create a local ORAWIN.INI in the c:\windows directory
specifying the new FORMS45_PATH , but it did not seem to work.

Please help.

Thanks.
Ken
0
Comment
Question by:keoktay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
tejay earned 60 total points
ID: 1081072
Hi Ken,

You can change the current oracle.ini in the win.ini, section
ORACLE. The key ora_config points to the current oracle.ini

You can change your working directory to c:\project, also.
But I'm not sure about this. Just try it.

HTH, TeJay
0
 
LVL 2

Expert Comment

by:frankr
ID: 1081073
You could also define an environment variable that could contain the path.  We do that for our production apps.  So, for example, we issue a CALL_FORM('%formsbin%\formname.fmx').

This makes it easy for us to define different paths on development systems or different client types (95 and NT clients, for example), and select the right directory on the fly at run time.  Define the value in whatever way is appropriate to the flavor of Windows (e.g. put "SET formsbin C:\myforms" in your autoexec.bat).  If you want to know what's already defined, go to a DOS prompt and just type 'SET'.  It will list all the existing environment variables.

Oracle tools are generally very good about understanding environment variables and handling them appropriately.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question