+ Reply to Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2001
    Location
    New York , New York
    Posts
    577
    Hi,

    I have a 8.1.7 database with intermedia installed.

    I have to manually start the context server everytime i shutdown/startup the database.

    Is there a way I can automate this process.


    Thanks
    Ronnie
    ronnie_yours@yahoo.com

    You can if you think you can.

  2. #2
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    U can start context server in database operations triggers:
    after STARTUP, and before SHUTDOWN.

    CREATE TRIGGER start_ctx AFTER STARTUP ON DATABASE
    BEGIN
    ....
    -- start context server
    END;
    /

    CREATE TRIGGER start_ctx BEFORE SHUTDOWN ON DATABASE
    BEGIN
    ....
    -- stop context server
    END;



  3. #3
    Join Date
    Mar 2001
    Location
    New York , New York
    Posts
    577
    Hi,

    It needs to execute a exe file to start the serverand thats an operating system command.

    This is what is required to execute it from the dos prompt

    ctxsrv -user ctxsys/ctxsys@company -personality M

    i am not sure whether it can be done using some other way or not.

    btw I am using 8.1.7.3 on windows 2000.

    Any help would be appreciated.


    Thanks
    Ronnie
    ronnie_yours@yahoo.com

    You can if you think you can.

  4. #4
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    U can start externam c/c++ dll from these triggers.

    0) write very small c program (as *.dll), that can start host command (for example ctx_start_stop.dll)
    1) create library
    CREATE LIBRARY ctx_start AS 'c/prg_exterlal/ctx_start_stop.dll';
    2) create "wrap" procedures/functions on pl/sql

    CREATE OR REPLACE FUNCTION p_ctx_start
    RETURN BINARY_INTEGER
    AS LANGUAGE C
    LIBRARY ctx_start
    NAME "c_start";

    CREATE OR REPLACE FUNCTION p_ctx_stop
    RETURN BINARY_INTEGER
    AS LANGUAGE C
    LIBRARY ctx_start
    NAME "c_stop";

    then u can use its in ur triggers.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Click Here to Expand Forum to Full Width