Oracle

Oracle PL/SQL Rotate/Pivot Query

Alias Query a campi incrociati in Oracle. Supponiamo di avere due tabelle: Master Table Column Type Description ID INT Unique identity column ...

posted @ domenica 5 giugno 2005 23:01 | Feedback (2)

Installare Oracle 10g su Redhat Enterprise Linux AS 3 Update 4 su x86 (Step-to-Step)

Premetto che ho iniziato l'installazione su un pc dove avevo precedentemente installato la Redhat con una installazione di base che comprendeva anche un windows manager (nel mio caso gnome). I puristi troveranno da obbiettare: tutto a riga di comando! ... ma io non sono un purista ;) Vi consiglio di utilizzare una installazione di base predefinita e di modificare l'elenco dei package in un secondo momento (aggiungendo o rimuovendo i package desiderati, dopo la fine dell'installazione). Per quando riguarda le mie esperienze con le installazione redhat (cioè dalla Redhat 3.0 - non la enterprise :p - in poi), ho avuto...

posted @ venerdì 18 febbraio 2005 23:16 | Feedback (5)

Example C#: Export Oracle Schema To XML

App.Config   <configuration>       <appSettings>             <add key="ConnectionString" value="User ID=;Password=;Data Source=" />             <add key="OracleSchema" value="" />       </appSettings> </configuration>   Main.cs   using System; using System.Data; using System.Data.OracleClient; using System.Configuration;   namespace ExportOracleSchema {       class ExportOracleSchemaConsole       {             /// <summary>             /// The main entry point for the application.             /// </summary>             [STAThread]             static void Main(string[] args)             {                   //                   OracleConnection cnn = new OracleConnection(ConfigurationSettings.AppSettings.Get("ConnectionString"));                   OracleCommand cmd = new OracleCommand();                   OracleDataReader readerTables;                   OracleDataReader readerColumns;                   OracleDataReader readerComments;                   OracleString comment;                   OracleNumber precision;                   OracleNumber length;                   //                   cnn.Open();                   cmd.Connection = cnn;                   //                   cmd.CommandText = "select table_name  from all_all_tables where owner = '" + ConfigurationSettings.AppSettings.Get("OracleSchema") + "' order by table_name";                   cmd.CommandType = CommandType.Text;                   readerTables...

posted @ venerdì 1 ottobre 2004 21:58 | Feedback (2)