CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Defining the Database properties???

Print topic Send  topic

Author Message
NickJ

Posts: 1
Posted: 01/28/2004, 3:32 AM

Hi all,

I'm a bit confused as to what I need to set in the 'Database' properties when defining a new project.

I'm using an Oracle 9i database and my TNS connection script is as follows,

DORIS.IES.LMU.AC.UK =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = doris.ies.lmu.ac.uk)(PORT = 1521))
)
(CONNECT_DATA =
(SID = db9i)
)
)

Obviously the host needs to set to 'doris.ies.lmu.ac.uk', but what do I need to set as the database name? Would it be 'db9i'?

Also, in the database properties section, it asks you for both 'design' and 'server' properties. When using PHP is it essential to use both?

Sorry if this doesn't make much sense but can anyone enlighten me a little.

Thanks in advance

Nick
View profile  Send private message
peterr


Posts: 5971
Posted: 01/28/2004, 7:15 PM

Yes, you can specify SID in the Database name field in the Server Connection.

Please note:
http://docs.codecharge.com/studio/html/UserGuide/Workin...gDatabases.html
"...When using a database such as Oracle or Microsoft SQL server, you should first ensure that the server has been compiled with support for the database or the extension for the database is enabled within the PHP.ini configuration file. If the server does not have the necessary extension, an error will be generated when you attempt to view the page. The error usually states that you attempted to use a undeclared function, which is indication that the server does not have the required extension..."

BTW, where you able to connect to your database in the design mode? You'd need to create an Oracle ODBC/DSN connection for this.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 01/29/2004, 11:53 AM

BTW, we recommend to use the following additional entry in your tsnnames file:

db9i =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = doris.ies.lmu.ac.uk)(PORT = 1521))
)
(CONNECT_DATA = (SID = db9i))
)

Example of Server connection properties for this connection:
PHPDatabase Library: Oracle
Database: db9i
Login: (actual login)
Password: (actual passwod)

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.