Support for 11g remote Instance management in OCILIB v3.4.0


Hello,

OCILIB v3.4.0 is coming soon :)

This release fixes 3 bugs and adds support for Oracle 11g remote Instance startup/shutdown.

Here is a sample app that startups a remote instance and then shuts it down :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
     
    #include "ocilib.h"
    
    int main(int argc, char **argv)
    { 
        OCI_Initialize(error, NULL,  OCI_ENV_DEFAULT);
    
        /* start remote instance */
    
        OCI_DatabaseStartup("db", 
                            "sys_user", 
                            "sys_pwd",                
                            OCI_SESSION_SYSDBA, 
                            OCI_DB_SPM_FULL,
                            OCI_DB_SPF_DEFAULT,
                            NULL);
    
    
         /* shutdown remote instance */
    
        OCI_DatabaseShutdown("db", 
                            "sys_user", 
                            "sys_pwd", 
                             OCI_SESSION_SYSDBA,
                             OCI_DB_SDM_FULL,
                             OCI_DB_SDF_DEFAULT);
    
        OCI_Cleanup();
        
        return EXIT_SUCCESS;
    }   

Isn’t cool ?

Have a nice day..