linuxdatabaseoracle-databaseobfuscationutilities

Is there any way to use Wrap (from Oracle client utilities) as a portable, or easier to be installed on Linux?


I was looking for automation in some processes, and one goal would be using wrap command (from Oracle client) in the build server, to obfuscate some scripts. I could install Oracle database utilities on Windows, but I'm having no luck with Ubuntu (WSL), which is the server's OS and where I'd like to use the automation script calling wrap command.

Did you have any lucky using this tool on Linux servers?

Thanks in advance


Solution

  • The wrap utility requires a full Oracle DB install. If that is not convenient for you, you can use the Oracle Docker image. Go to https://container-registry.oracle.com – click on Database -> enterprise. Sign in with your Oracle account, and accept the license agreement.

    Then on your WSL terminal

    docker login container-registry.oracle.com
    

    Login using the same Oracle account you used in the previous step. Then

    docker pull container-registry.oracle.com/database/enterprise:21.3.0.0
    

    For full setup instructions see the page where you first signed in with your Oracle account.

    The wrap utility is included in the $ORACLE_HOME/bin directory. You can run it from WSL using docker exec e.g. where oracledb-1 is the name of the Oracle Docker container:

    docker exec -u root --workdir / -ti oracledb-1 bash -c "wrap somefile.sql"