Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
f5c01e34
Commit
f5c01e34
authored
16 years ago
by
Dennis Waldron
Browse files
Options
Downloads
Patches
Plain Diff
Added a new DLFConfig view
parent
034b4eec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
monitoring/procedures_new/oracleCreate.sql
+7
-3
7 additions, 3 deletions
monitoring/procedures_new/oracleCreate.sql
with
7 additions
and
3 deletions
monitoring/procedures_new/oracleCreate.sql
+
7
−
3
View file @
f5c01e34
...
...
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @(#)$RCSfile: oracleCreate.sql,v $ $Release: 1.2 $ $Release$ $Date: 2009/03/0
5
1
4
:0
2
:0
7
$ $Author: waldron $
* @(#)$RCSfile: oracleCreate.sql,v $ $Release: 1.2 $ $Release$ $Date: 2009/03/0
6
1
5
:0
5
:0
9
$ $Author: waldron $
*
* This script create a new Monitoring schema
*
...
...
@@ -40,7 +40,7 @@ BEGIN
BEGIN
SELECT
username
INTO
unused
FROM
all_users
WHERE
lower
(
username
)
=
'&&dlfschema'
;
WHERE
username
=
upper
(
'&&dlfschema'
)
;
EXCEPTION
WHEN
NO_DATA_FOUND
THEN
raise_application_error
(
-
20000
,
'User &dlfschema does not exist'
);
END
;
...
...
@@ -48,7 +48,7 @@ BEGIN
BEGIN
SELECT
owner
INTO
unused
FROM
all_tables
WHERE
lower
(
owner
)
=
'&&dlfschema'
WHERE
owner
=
upper
(
'&&dlfschema'
)
AND
table_name
=
'DLF_VERSION'
;
EXCEPTION
WHEN
NO_DATA_FOUND
THEN
raise_application_error
(
-
20001
,
'Unable to access the &dlfschema..dlf_version table. Check that the correct grants have been issued!'
);
...
...
@@ -111,6 +111,10 @@ CREATE TABLE TapeMountsHelper (timestamp DATE CONSTRAINT NN_TapeMountsHelper_ts
CREATE
OR
REPLACE
VIEW
DLFStats
AS
SELECT
*
FROM
&
dlfschema
..
dlf_monitoring
;
/* SQL statement for a view on the DLF_Config table */
CREATE
OR
REPLACE
VIEW
DLFConfig
AS
SELECT
*
FROM
&
dlfschema
..
dlf_config
;
/* PL/SQL method implementing statsLatency
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment