Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
b988f2be
Commit
b988f2be
authored
Aug 16, 2016
by
Steven Murray
Browse files
Corrected and improved man pages of catalogue utilities
parent
13e88d50
Changes
3
Hide whitespace changes
Inline
Side-by-side
catalogue/cta-catalogue-schema-lock.1cta
View file @
b988f2be
...
...
@@ -41,6 +41,8 @@ The path to the configuration file containing the connection details of the
CTA catalogue database.
.SH RETURN VALUE
Zero on success and non-zero on failure.
.SH EXAMPLES
cta-catalogue-schema-lock /etc/cta/cta_catalogue_db.conf
.SH AUTHOR
\fBCTA\fP Team
catalogue/cta-catalogue-schema-unlock.1cta
View file @
b988f2be
...
...
@@ -15,12 +15,12 @@
.\" along with this program. If not, see <http://www.gnu.org/licenses/>.
.TH CTA-CATALOGUE-SCHEMA-UNLOCK 1CTA "August 2016" CTA "CTA"
.SH NAME
cta-catalogue-schema-lock \- Unlock the CTA catalogue schema
cta-catalogue-schema-
un
lock \- Unlock the CTA catalogue schema
.SH SYNOPSIS
.BI "cta-catalogue-schema-lock databaseConnectionFile"
.BI "cta-catalogue-schema-
un
lock databaseConnectionFile"
.SH DESCRIPTION
\fBcta-catalogue-schema-lock\fP is a command-line tool that unlocks the CTA
\fBcta-catalogue-schema-
un
lock\fP is a command-line tool that unlocks the CTA
catalogue database schema in order to help prevent it from accidently being
deleted.
.P
...
...
@@ -41,6 +41,8 @@ The path to the configuration file containing the connection details of the
CTA catalogue database.
.SH RETURN VALUE
Zero on success and non-zero on failure.
.SH EXAMPLES
cta-catalogue-schema-unlock /etc/cta/cta_catalogue_db.conf
.SH AUTHOR
\fBCTA\fP Team
catalogue/drop_oracle_catalogue_schema.sql
View file @
b988f2be
...
...
@@ -55,9 +55,9 @@ DECLARE
END
;
FUNCTION
catalogueSchemaIsLocked
RETURN
BOOLEAN
IS
TYPE
StatusList
IS
TABLE
OF
VARCHAR
(
100
);
TYPE
StatusList
IS
TABLE
OF
VARCHAR
2
(
100
);
schemaLocked
INTEGER
;
schemaStatus
VARCHAR
(
100
);
schemaStatus
VARCHAR
2
(
100
);
BEGIN
EXECUTE
IMMEDIATE
'SELECT SCHEMA_STATUS FROM CTA_CATALOGUE'
INTO
schemaStatus
;
RETURN
'LOCKED'
=
schemaStatus
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment