EXP Computer ThinConnect4 Guide de l'utilisateur Page 152

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 163
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 151
// Utility function to read a line from standard input
static String readEntry(String prompt)
{
try
{
StringBuffer buffer = new StringBuffer();
System.out.print(prompt);
System.out.flush();
return in.readLine();
}
catch(IOException e)
{
return "";
}
}
}
Step 7 Run your application
With the server started you can run the sample application and provide the thin server
connection information
Example
The following example assumes an Oracle Rdb database personnel in MY_DB_DIR
$java –cp .;rdb$jdbc_home:rdbThin.jar "my_ap"
Please enter information to test connection to the database
user: my_name
password: my_password
database: my_db_dir:personnel
Connecting to the database...Connecting...
connected.
Hello World
Your JDBC installation is correct.
Contents
10.3
1.
2.
Sample Setup, Starting an Oracle JDBC for Rdb thin
server from Oracle SQL/Services.
The following sections describe step by step how you can setup and start a simple JDBC
server using Oracle SQL/Services.
Basically you have to:
Decide on the versions of Rdb and JAVA you wish to use on the server
Setup server-side configuration files and command procedures
152
Vue de la page 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 162 163

Commentaires sur ces manuels

Pas de commentaire