A net global tool helping to retrieve some infos (packages, functions, procedures, etc.) from oracle
In this repo, i m building a global tool that allows to retrieve schema(s), package(s), function(s), procedure(s) and parameter(s) infos from oracle.
The tool is based on multiple sub commmands :
- Use sub command
Info
orInfos
to get oracle database infos- Use sub command
Table
orTables
to list tables from oracle- Use sub command
Schema
orSchemas
to list schemas from oracle- Use sub command
Object
orObjects
to list objects from oracle- Use sub command
Package
orPackages
to list packages from oracle- Use sub command
Function
orFunctions
to list functions from oracle- Use sub command
Procedure
orProcedures
to list procedures from oracle- Use sub command
Parameter
orParameters
to list procedure/function parameters from oracle- Use sub command
Source
orSources
to get procedure/function source code from oracle- Use sub command
Session
orSessions
to get active sessions from oracle- Use sub command
Lock
orLocks
to get locked sessions from oracle
To run the tool, type commands :
OracleCli -h
to show helpOracleCli -s
to show settingsOracleCli Infos -d [db-name]
to get oracle database infosOracleCli Tables -d [db-name]
to list tables from oracleOracleCli Schemas -d [db-name]
to list schemas from oracleOracleCli Objects -d [db-name]
to list objects from oracleOracleCli Packages -d [db-name]
to list packages from oracleOracleCli Functions -d [db-name]
to list functions from oracleOracleCli Procedures -d [db-name]
to list procedures from oracleOracleCli Parameters -d [db-name] -p [pkg-name] -s [spc-name]
to list procedure parameters from oracleOracleCli Parameters -d [db-name] -p [pkg-name] -f [fun-name]
to list function parameters from oracleOracleCli Sources -d [db-name] -p [pkg-name] -s [spc-name]
to get procedure source code from oracleOracleCli Sources -d [db-name] -p [pkg-name] -f [fun-name]
to get function source code from oracleOracleCli Sessions -d [db-name]
to get active sessions from oracleOracleCli Locks -d [db-name]
to get locked sessions from oracleTo install global tool from a local source path, type commands :
dotnet tool install -g --configfile .\nugets\local.config OracleCli --version "*-*" --ignore-failed-sources
To install global tool from nuget source, type these command :
- For stable version :
dotnet tool install -g OracleCli --ignore-failed-sources
- For prerelease version :
dotnet tool install -g OracleCli --version "*-*" --ignore-failed-sources
To uninstall global tool, type these command :
dotnet tool uninstall -g OracleCli
Tools
: vs22, net 6.0/7.0, command-line, spectre-console, fluent-validation, dapper, xunit, test-containers, polly