Friday, May 17, 2013

Virtuoso - Install Virtuoso Open Source in Window

Download Virtuoso Open Source

http://sourceforge.net/projects/virtuoso/files/virtuoso/6.1.6/virtuoso-opensource-win64-20120802.zip/download

Creating a Windows Service for the Default Database

  1. Go to the root of the virtuoso tree "virtuoso-opensource". Create a system environment variable called VIRTUOSO_HOME, with this path for its value.
  2. Run the following command:
    Run cmd as Administrator
    cd %VIRTUOSO_HOME%\database
    

  3. Next run the following command:
    SET PATH=%PATH%;%VIRTUOSO_HOME%\bin;%VIRTUOSO_HOME%\lib
    

    • This should be settable via My Computer (right click) ->Properties-> Advanced (tab) -> Environment Variables, in the PATH variable in system section.
    • Note: it is important to retain the rest of the existing PATH variable, i.e. the Virtuoso's install paths mentioned above should be prepended before the existing PATH, not over it.
  4. Verify your Virtuoso binary by typing in the command:
    virtuoso-t -? 
    
    Note we also provide binaries with Java (virtuoso-javavm-t) and .Net CLR (virtuoso-clr-t) hosting support, 
    which can be substituted for "virtuoso-t" in this and the sections below if such support is required.
    
    

  5. Create the service instance by typing the command (to create a new Windows service called "Instance Name" without replacing existing service):
    virtuoso-t +service screate +instance "Instance Name" +configfile virtuoso.ini 
    

    • Note: Once the PATH is set, before creating a service you need to re-start the OS in order the PATH settings to be in effect and the service to be possible to be created.
    • Note: If you want to create and replace existing service use the command:
      virtuoso-t +service create +instance "Instance Name" +configfile virtuoso.ini 
      

  6. Verify that the service has been created and registered with Windows by typing the command:
    virtuoso-t +service list 
    

  7. Start an existing or newly created instance by typing the command:
    virtuoso-t -I "Instance Name" +service start
    
    
    

  8. Stop a running instance by typing the command:
    virtuoso-t -I "Instance Name" +service stop
    

  9. Delete a service instance by typing the command:
    virtuoso-t +service delete +instance "Instance Name" 
    

  10. Once the Virtuoso windows service is created, the standard Windows Services Manager can be used to start and stop the Virtuoso Server, which would be identified in the Server Manager with a name of OpenLink Virtuoso Server [Instance Name]. The service can also be set to auto start using the Windows Services Manager such that the Virtuoso Server automatically starts when the Windows machine is started. The Windows Services Manager can be accessed from Control Panel -> Administrative Tools -> Services menu items.

Virtuoso Web Admin Tool (Conductor)

The Virtuoso Conductor is a HTTP based Web Admin tool for your Virtuoso instance and can be access with the URL:
 http://localhost:8890/conductor

or

 http://<hostname>:8890/conductor 

login as user dba, password dba.

DBMS Server not start

If the Virtuoso DBMS server won't start, there could be 3 reasons.
  • It is already running
  • It died earlier
  • It terminated normally earlier, but the virtuoso.lck file was not deleted
When the DBMS server starts up, it creates a file in the bin directory named "virtuoso.lck". If this file is present, a new instance cannot run. If you are certain that the DBMS isn't running, then you can delete the virtuoso.lck file and then start it from the Services icon in the Control Panel, or by using the command "virtuoso +service start" in the virtuoso directory. You can check if virtuoso is running from the Task Manager, and you can shut it down using the command "virtuoso +service stop".

Command Prompt

Install other Virtuoso VAD applications   

BPEL Process Manager (bpel4ws package)

To experiment with the BPEL Process Manager go to http://localhost:8890/BPELGUI
  • Note: you should login as user dba, password dba.

SPARQL Implementation Demo (SPARQL Demo package)

 http://localhost:8890/sparql_demo/

iSPARQL (iSparql package)

http://localhost:8890/isparql/

Briefcase (Briefcase package, require Framework package)

Trouble Shooting

1. Unable to open the service control manager

copy  database/virtuoso.ini  as  demo.ini  in virtuoso-opensource
remove in file demo.ini  all character ../
virtuoso-t.exe -c demo -I Demo -S create

2.  Run cmd in Admistrator

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. In the 5th step i am getting the message "unable to open control manager (5)" ... in my cmd shell....
    please help...

    ReplyDelete