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
6d2c3b4d
Commit
6d2c3b4d
authored
12 years ago
by
Giuseppe Lo Presti
Browse files
Options
Downloads
Patches
Plain Diff
Still part of the previous commit: we can't use temporary tables...
parent
150b9999
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ns/oracleSchema.sql
+8
-17
8 additions, 17 deletions
ns/oracleSchema.sql
upgrades/cns_2.1.12-4_to_2.1.13-0.sql
+7
-15
7 additions, 15 deletions
upgrades/cns_2.1.12-4_to_2.1.13-0.sql
with
15 additions
and
32 deletions
ns/oracleSchema.sql
+
8
−
17
View file @
6d2c3b4d
...
...
@@ -97,20 +97,11 @@ CREATE INDEX I_seg_metadata_tapesum ON Cns_seg_metadata (vid, s_fileid, segsize,
CREATE
GLOBAL
TEMPORARY
TABLE
Cns_files_exist_tmp
(
tmpFileId
NUMBER
)
ON
COMMIT
DELETE
ROWS
;
-- Temporary tables to store intermediate data to be passed from/to the stager.
-- We keep the data on commit and truncate it explicitly afterwards as we
-- want to use it over multiple commits (e.g. on bulk multi-file operations).
CREATE
GLOBAL
TEMPORARY
TABLE
SetSegmentsForFilesHelper
(
reqId
VARCHAR2
(
36
),
fileId
NUMBER
,
lastModTime
NUMBER
,
copyNo
NUMBER
,
oldCopyNo
NUMBER
,
transfSize
NUMBER
,
comprSize
NUMBER
,
vid
VARCHAR2
(
6
),
fseq
NUMBER
,
blockId
RAW
(
4
),
checksumType
VARCHAR2
(
16
),
checksum
NUMBER
)
ON
COMMIT
PRESERVE
ROWS
;
CREATE
INDEX
I_SetSegsHelper_ReqId
ON
SetSegmentsForFilesHelper
(
reqId
);
CREATE
GLOBAL
TEMPORARY
TABLE
ResultsLogHelper
(
reqId
VARCHAR2
(
36
),
timeinfo
NUMBER
,
ec
INTEGER
,
fileId
NUMBER
,
msg
VARCHAR2
(
2048
),
params
VARCHAR2
(
4000
))
ON
COMMIT
PRESERVE
ROWS
;
CREATE
INDEX
I_ResultsLogHelper_ReqId
ON
ResultsLogHelper
(
reqId
);
-- Tables to store intermediate data to be passed from/to the stager.
-- Note that we cannot use temporary tables with distributed transactions.
CREATE
TABLE
SetSegmentsForFilesHelper
(
reqId
VARCHAR2
(
36
),
fileId
NUMBER
,
lastModTime
NUMBER
,
copyNo
NUMBER
,
oldCopyNo
NUMBER
,
transfSize
NUMBER
,
comprSize
NUMBER
,
vid
VARCHAR2
(
6
),
fseq
NUMBER
,
blockId
RAW
(
4
),
checksumType
VARCHAR2
(
16
),
checksum
NUMBER
);
CREATE
ResultsLogHelper
(
reqId
VARCHAR2
(
36
),
timeinfo
NUMBER
,
ec
INTEGER
,
fileId
NUMBER
,
msg
VARCHAR2
(
2048
),
params
VARCHAR2
(
4000
));
This diff is collapsed.
Click to expand it.
upgrades/cns_2.1.12-4_to_2.1.13-0.sql
+
7
−
15
View file @
6d2c3b4d
...
...
@@ -58,23 +58,15 @@ COMMIT;
/* Schema changes go here */
/**************************/
-- Temporary tables to store intermediate data to be passed from/to the stager.
-- We keep the data on commit and truncate it explicitly afterwards as we
-- want to use it over multiple commits (e.g. on bulk multi-file operations).
CREATE
GLOBAL
TEMPORARY
TABLE
SetSegmentsForFilesHelper
(
reqId
VARCHAR2
(
36
),
fileId
NUMBER
,
lastModTime
NUMBER
,
copyNo
NUMBER
,
oldCopyNo
NUMBER
,
transfSize
NUMBER
,
comprSize
NUMBER
,
vid
VARCHAR2
(
6
),
fseq
NUMBER
,
blockId
RAW
(
4
),
checksumType
VARCHAR2
(
16
),
checksum
NUMBER
)
ON
COMMIT
PRESERVE
ROWS
;
CREATE
INDEX
I_SetSegsHelper_ReqId
ON
SetSegmentsForFilesHelper
(
reqId
);
CREATE
GLOBAL
TEMPORARY
TABLE
ResultsLogHelper
(
reqId
VARCHAR2
(
36
),
timeinfo
NUMBER
,
ec
INTEGER
,
fileId
NUMBER
,
msg
VARCHAR2
(
2048
),
params
VARCHAR2
(
4000
))
ON
COMMIT
PRESERVE
ROWS
;
-- Tables to store intermediate data to be passed from/to the stager.
-- Note that we cannot use temporary tables with distributed transactions.
CREATE
TABLE
SetSegmentsForFilesHelper
(
reqId
VARCHAR2
(
36
),
fileId
NUMBER
,
lastModTime
NUMBER
,
copyNo
NUMBER
,
oldCopyNo
NUMBER
,
transfSize
NUMBER
,
comprSize
NUMBER
,
vid
VARCHAR2
(
6
),
fseq
NUMBER
,
blockId
RAW
(
4
),
checksumType
VARCHAR2
(
16
),
checksum
NUMBER
);
CREATE
INDEX
I_ResultsLogHelper_ReqId
ON
ResultsLogHelper
(
reqId
);
CREATE
ResultsLogHelper
(
reqId
VARCHAR2
(
36
),
timeinfo
NUMBER
,
ec
INTEGER
,
fileId
NUMBER
,
msg
VARCHAR2
(
2048
),
params
VARCHAR2
(
4000
));
...
...
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