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
71f02dbb
Commit
71f02dbb
authored
16 years ago
by
Dennis Waldron
Browse files
Options
Downloads
Patches
Plain Diff
Initial Revision
parent
2f3b3b4b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
castor/db/stager_oracle_create.list
+9
-0
9 additions, 0 deletions
castor/db/stager_oracle_create.list
castor/db/stager_oracle_grant.sql
+46
-0
46 additions, 0 deletions
castor/db/stager_oracle_grant.sql
with
55 additions
and
0 deletions
castor/db/stager_oracle_create.list
0 → 100644
+
9
−
0
View file @
71f02dbb
fillType2Obj.sql
oracleCommon.sql
oraclePerm.sql
oracleStager.sql
oracleJob.sql
oracleQuery.sql
oracleTape.sql
oracleGC.sql
oracleDebug.sql
This diff is collapsed.
Click to expand it.
castor/db/stager_oracle_grant.sql
0 → 100644
+
46
−
0
View file @
71f02dbb
/******************************************************************************
* stager_oracle_grant.sql
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @(#)$RCSfile: stager_oracle_grant.sql,v $ $Release: 1.2 $ $Release$ $Date: 2009/02/05 16:12:48 $ $Author: waldron $
*
* This script grant access to all tables through the castor_read account
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
DECLARE
unused
NUMBER
;
BEGIN
-- Check to see if the castor_read user exists
SELECT
user_id
INTO
unused
FROM
all_users
WHERE
username
=
'CASTOR_READ'
;
-- Grant select on all tables, excluding temporary ones to the castor_read
-- account. Note: there is no easy GRANT SELECT ON ANY syntax here so we
-- must loop on all tables.
FOR
a
IN
(
SELECT
table_name
FROM
user_tables
WHERE
temporary
=
'N'
)
LOOP
EXECUTE
IMMEDIATE
'GRANT SELECT ON '
||
a
.
table_name
||
' TO castor_read'
;
END
LOOP
;
-- The castor_read account is not mandatory so if it doesn't exist do nothing
EXCEPTION
WHEN
NO_DATA_FOUND
THEN
NULL
;
END
;
/
/* End-of-File */
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