SlideShare a Scribd company logo
1 of 13
Download to read offline
Data Dictionary / Directory
DBC
Sys_Calendar SysAdmin SystemFE
Crashdumps SYSDBA
Data Dictionary / Directory Tables
Object definitions
System event logs
System message table
Journals and Restart control tables
Accounting information
Access control tables
Views of DD/D Tables
Administrative
Security
Supervisory
End User
Operational
Macros
Add calculation sequence
Generate utilization reports
Reset accounting values
Authorize secured functions
Selecting Information about Created Objects
DBC.Children[X] Hierarchical relationship information.
DBC.Databases[X] Database, user and immediate parent information.
DBC.Users Similar to Databases view, but includes columns specific to users.
DBC.Tables[X] Tables, views, macros, triggers, and stored procedures information.
DBC. ShowTblChecks Database table constraint information.
DBC.ShowColChecks Database column constraint information.
DBC.Columns[X] Information about columns in tables and views, and parameters in macros.
DBC.Indices[X] Table index information.
DBC.IndexConstraints (V2R5) - Provides information about index constraints, e.g., PPI definition.
DBC.AllTempTables Information about all global temporary tables materialized in the system.
DBC.Triggers Information about event-driven, specialized procedures attached to a single
table and stored in the database.
Teradata Administrator List Columns of a View
Appendix E of
this manual
contains a listing
of all the DD/D
views and
columns for
Teradata V2R5.1.
Teradata Administrator can be used to list the columns of DD/D views (and tables).
Teradata Administrator Object Options
Teradata
Administrator can
also be used to
display object details.
For example, right-
click on the object
(e.g., Department
table) and a menu of
options is displayed.
In this example, the
Indexes option was
selected.
Creating New Users and Databases
Human_Resources Accounting
DBC
SYSDBA
PR01 PR02 PR03 BF01 BF02 BF03
Personnel Benefits
You can grant CREATE DATABASE authority to any user.
The user may then create other users and databases from:
• The user’s own space, or
• The space of another user or database (if authorized).
CREATE DATABASE Statement
CREATE DATABASE database_name AS A
CD FROM db_name
,
A PERMANENT = n
PERM BYTES ;
SPOOL = n TEMPORARY = n
BYTES BYTES
ACCOUNT = 'account_id' FALLBACK
NO PROTECTION
JOURNAL AFTER JOURNAL
NO BEFORE NO
DUAL DUAL
LOCAL
NOT LOCAL
DEFAULT JOURNAL TABLE = table_name
db_name.
CREATE USER Statement
CREATE USER name AS PERMANENT = n A
FROM db_name PERM BYTES ,
,
A PASSWORD = password
NULL ;
SPOOL = n TEMPORARY = n STARTUP = 'string;'
BYTES BYTES
ACCOUNT = 'account_id' FALLBACK
('acct_id', 'acct_id', …) NO PROTECTION
DEFAULT DATABASE = db_name COLLATION = coll_seq DEFAULT CHARACTER SET = ch_dt
JOURNAL AFTER JOURNAL
NO BEFORE NO
DUAL DUAL
LOCAL
NOT LOCAL
DEFAULT JOURNAL TABLE = table_name DATEFORM = INTEGERDATE
db_name. ANSIDATE
NULL
TIMEZONE = LOCAL DEFAULT ROLE = role_name PROFILE = profile_name
quotestring NULL NULL
sign NONE
NULL ALL (V2R5.1)
CREATE USER and the Data Dictionary
EXPLAIN
CREATE USER tfact06 AS PERM = 10e6, SPOOL = 100e6, PASSWORD = secure1time;
Explanation
1) First, we lock data base tfact06 for exclusive use.
2) Next, we lock a distinct DBC."pseudo table" for write on a RowHash to prevent global deadlock for
DBC.DataBaseSpace.
3) We lock a distinct DBC."pseudo table" for write on a RowHash to prevent global deadlock for
DBC.AccessRights.
4) We lock a distinct DBC."pseudo table" for write on a RowHash to prevent global deadlock for DBC.Parents.
5) We lock a distinct DBC."pseudo table" for write on a RowHash to prevent global deadlock for DBC.Owners.
6) We lock DBC.DataBaseSpace for write, we lock DBC.AccessRights for write, we lock DBC.Parents for write,
we lock DBC.Owners for write, we lock DBC.Accounts for write on a RowHash, we lock DBC.DBase for
write on a RowHash, and we lock DBC.DBase for write on a RowHash.
7) We execute the following steps in parallel.
1) We do a single-AMP ABORT test from DBC.DBase by way of the unique primary index with no
residual conditions.
2) We do a single-AMP ABORT test from DBC.Roles by way of the unique primary index with no
residual conditions.
3) We do a single-AMP ABORT test from DBC.DBase by way of the unique primary index.
4) We do a single-AMP ABORT test from DBC.DBase by way of the unique primary index.
5) We do an INSERT into DBC.DBase.
6) We do a single-AMP UPDATE from DBC.DBase by way of the unique primary index with no residual
conditions.
7) We do a single-AMP RETRIEVE step from DBC.Parents by way of the primary index with no residual
conditions into Spool 1 (all_amps), which is redistributed by hash code to all AMPs. Then we do a
SORT to order Spool 1 by row hash.
8) We do an all-AMPs MERGE into DBC.Owners from Spool 1 (Last Use).
CREATE USER and the Data Dictionary
(cont.)
9) We execute the following steps in parallel.
1) We do an INSERT into DBC.Owners.
2) We do a single-AMP RETRIEVE step from DBC.Parents by way of the primary index with no residual
conditions into Spool 2 (all_amps), which is redistributed by hash code to all AMPs. Then we do a
SORT to order Spool 2 by row hash.
10) We do an all-AMPs MERGE into DBC.Parents from Spool 2 (Last Use).
11) We execute the following steps in parallel.
1) We do an INSERT into DBC.Parents.
2) We do an INSERT into DBC.Accounts.
3) We do a single-AMP RETRIEVE step from DBC.AccessRights by way of the primary index into Spool 3
(all_amps), which is redistributed by hash code to all AMPs.
12) We execute the following steps in parallel.
1) We do a single-AMP RETRIEVE step from DBC.AccessRights by way of the primary index into Spool 3
(all_amps), which is redistributed by hash code to all AMPs.
2) We do an all-AMPs RETRIEVE step from DBC.AccessRights by way of an all-rows scan into Spool 4
(all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 4 by
row hash.
13) We do an all-AMPs JOIN step from DBC.Owners by way of a RowHash match scan, which is joined to
Spool 4 (Last Use). DBC.Owners and Spool 4 are joined using a merge join. The result goes into Spool 3
(all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 3 by row
hash.
14) We do an all-AMPs MERGE into DBC.AccessRights from Spool 3 (Last Use).
15) We flush the DISKSPACE and AMPUSAGE caches.
16) We do an all-AMPs ABORT test from DBC.DataBaseSpace by way of the unique primary index.
17) We do an INSERT into DBC.DataBaseSpace.
18) We do an all-AMPs UPDATE from DBC.DataBaseSpace by way of the unique primary index with no residual
conditions.
19) We flush the DISKSPACE and AMPUSAGE caches.
20) We spoil the parser's dictionary cache for the database.
21) Finally, we send out an END TRANSACTION step to all AMPs involved in processing the request.
-> No rows are returned to the user as the result of statement 1.
MODIFY USER Statement
,
MODIFY USER name AS
;
PASSWORD = pwd RELEASE PASSWORD LOCK STARTUP = NULL
NULL FOR USER 'string;'
PERMANENT = n SPOOL = n TEMPORARY = n
PERM BYTES BYTES BYTES
ACCOUNT = 'account_id' FALLBACK COLLATION = coll_seq
('acct_id', 'acct_id', …) NO PROTECTION
DEFAULT DATABASE = db_name DEFAULT CHARACTER SET = character_data_type
DATEFORM = INTEGERDATE JOURNAL AFTER JOURNAL
ANSIDATE NO BEFORE NO
NULL DUAL DUAL
LOCAL
NOT LOCAL
DEFAULT JOURNAL TABLE = table_name DROP DEFAULT JOURNAL TABLE
db_name. =table_name
TIMEZONE = LOCAL DEFAULT ROLE = role_name PROFILE = profile_name
quotestring NULL NULL
sign NONE
NULL ALL (V2R5.1)
Teradata Administrator
Tools Menu Options
Teradata Administrator
can be used to create
and manage users and
databases.
Tools menu
• Selections to create
and modify
databases and uses,
grant/revoke access
rights, and send ad
hoc query requests
to Teradata RDBMS.
• Options include the
ability to clone a
user, move space,
and set preferences.
• This example
illustrates how to
create a database by
completing the
entries.
Teradata Administrator
GRANT/REVOKE Rights
• Select the object name and
object type.
• Select who is going to get
the right.
• Select the rights.
Teradata Administrator can be used to easily grant or revoke access rights.
Tools Î Grant/Revoke Î Object Rights
Teradata Administrator
Rights on DB/User
Right-click on the
database AU and
select the option.
In this example,
Rights on DB/User
was selected.
Teradata Administrator can also be used to easily view existing access rights

More Related Content

Similar to 1.1 Intro to WinDDI.pdf

30 5 Database Jdbc
30 5 Database Jdbc30 5 Database Jdbc
30 5 Database Jdbcphanleson
 
My sql with querys
My sql with querysMy sql with querys
My sql with querysNIRMAL FELIX
 
MDI Training DB2 Course
MDI Training DB2 CourseMDI Training DB2 Course
MDI Training DB2 CourseMarcus Davage
 
Abap programming overview
Abap programming overview Abap programming overview
Abap programming overview k kartheek
 
RailswayCon 2010 - Dynamic Language VMs
RailswayCon 2010 - Dynamic Language VMsRailswayCon 2010 - Dynamic Language VMs
RailswayCon 2010 - Dynamic Language VMsLourens Naudé
 
Database decommission process
Database decommission processDatabase decommission process
Database decommission processK Kumar Guduru
 
Deeply Declarative Data Pipelines
Deeply Declarative Data PipelinesDeeply Declarative Data Pipelines
Deeply Declarative Data PipelinesHostedbyConfluent
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETEAbrar ali
 
Introduction to JDBC and database access in web applications
Introduction to JDBC and database access in web applicationsIntroduction to JDBC and database access in web applications
Introduction to JDBC and database access in web applicationsFulvio Corno
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overviewsapdocs. info
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02wingsrai
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01tabish
 

Similar to 1.1 Intro to WinDDI.pdf (20)

30 5 Database Jdbc
30 5 Database Jdbc30 5 Database Jdbc
30 5 Database Jdbc
 
My sql with querys
My sql with querysMy sql with querys
My sql with querys
 
Database programming
Database programmingDatabase programming
Database programming
 
My sql.ppt
My sql.pptMy sql.ppt
My sql.ppt
 
JDBC – Java Database Connectivity
JDBC – Java Database ConnectivityJDBC – Java Database Connectivity
JDBC – Java Database Connectivity
 
Sequel
SequelSequel
Sequel
 
MDI Training DB2 Course
MDI Training DB2 CourseMDI Training DB2 Course
MDI Training DB2 Course
 
Abap programming overview
Abap programming overview Abap programming overview
Abap programming overview
 
Java 1-contd
Java 1-contdJava 1-contd
Java 1-contd
 
Rac nonrac clone
Rac nonrac cloneRac nonrac clone
Rac nonrac clone
 
Msql
Msql Msql
Msql
 
Java beans
Java beansJava beans
Java beans
 
RailswayCon 2010 - Dynamic Language VMs
RailswayCon 2010 - Dynamic Language VMsRailswayCon 2010 - Dynamic Language VMs
RailswayCon 2010 - Dynamic Language VMs
 
Database decommission process
Database decommission processDatabase decommission process
Database decommission process
 
Deeply Declarative Data Pipelines
Deeply Declarative Data PipelinesDeeply Declarative Data Pipelines
Deeply Declarative Data Pipelines
 
Database COMPLETE
Database COMPLETEDatabase COMPLETE
Database COMPLETE
 
Introduction to JDBC and database access in web applications
Introduction to JDBC and database access in web applicationsIntroduction to JDBC and database access in web applications
Introduction to JDBC and database access in web applications
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01
 

More from ssuser8b6c85

5.Analytical Function.pdf
5.Analytical Function.pdf5.Analytical Function.pdf
5.Analytical Function.pdfssuser8b6c85
 
5.Agg. Function.pdf
5.Agg. Function.pdf5.Agg. Function.pdf
5.Agg. Function.pdfssuser8b6c85
 
2.1 Data types.pdf
2.1 Data types.pdf2.1 Data types.pdf
2.1 Data types.pdfssuser8b6c85
 
1.8 Data Protection.pdf
1.8 Data Protection.pdf1.8 Data Protection.pdf
1.8 Data Protection.pdfssuser8b6c85
 
1.6 PI Mechanics.pdf
1.6  PI Mechanics.pdf1.6  PI Mechanics.pdf
1.6 PI Mechanics.pdfssuser8b6c85
 
1.4 System Arch.pdf
1.4 System Arch.pdf1.4 System Arch.pdf
1.4 System Arch.pdfssuser8b6c85
 

More from ssuser8b6c85 (10)

5.Analytical Function.pdf
5.Analytical Function.pdf5.Analytical Function.pdf
5.Analytical Function.pdf
 
5.Agg. Function.pdf
5.Agg. Function.pdf5.Agg. Function.pdf
5.Agg. Function.pdf
 
2.1 Data types.pdf
2.1 Data types.pdf2.1 Data types.pdf
2.1 Data types.pdf
 
1.8 Data Protection.pdf
1.8 Data Protection.pdf1.8 Data Protection.pdf
1.8 Data Protection.pdf
 
1.6 PI Mechanics.pdf
1.6  PI Mechanics.pdf1.6  PI Mechanics.pdf
1.6 PI Mechanics.pdf
 
1.5 PI Access.pdf
1.5 PI Access.pdf1.5 PI Access.pdf
1.5 PI Access.pdf
 
1.4 System Arch.pdf
1.4 System Arch.pdf1.4 System Arch.pdf
1.4 System Arch.pdf
 
Spark basic.pdf
Spark basic.pdfSpark basic.pdf
Spark basic.pdf
 
1.1 Overview.pdf
1.1 Overview.pdf1.1 Overview.pdf
1.1 Overview.pdf
 
6.3 Mload.pdf
6.3 Mload.pdf6.3 Mload.pdf
6.3 Mload.pdf
 

Recently uploaded

{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationBoston Institute of Analytics
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknowmakika9823
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 

Recently uploaded (20)

{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project Presentation
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 

1.1 Intro to WinDDI.pdf

  • 1. Data Dictionary / Directory DBC Sys_Calendar SysAdmin SystemFE Crashdumps SYSDBA Data Dictionary / Directory Tables Object definitions System event logs System message table Journals and Restart control tables Accounting information Access control tables Views of DD/D Tables Administrative Security Supervisory End User Operational Macros Add calculation sequence Generate utilization reports Reset accounting values Authorize secured functions
  • 2. Selecting Information about Created Objects DBC.Children[X] Hierarchical relationship information. DBC.Databases[X] Database, user and immediate parent information. DBC.Users Similar to Databases view, but includes columns specific to users. DBC.Tables[X] Tables, views, macros, triggers, and stored procedures information. DBC. ShowTblChecks Database table constraint information. DBC.ShowColChecks Database column constraint information. DBC.Columns[X] Information about columns in tables and views, and parameters in macros. DBC.Indices[X] Table index information. DBC.IndexConstraints (V2R5) - Provides information about index constraints, e.g., PPI definition. DBC.AllTempTables Information about all global temporary tables materialized in the system. DBC.Triggers Information about event-driven, specialized procedures attached to a single table and stored in the database.
  • 3. Teradata Administrator List Columns of a View Appendix E of this manual contains a listing of all the DD/D views and columns for Teradata V2R5.1. Teradata Administrator can be used to list the columns of DD/D views (and tables).
  • 4. Teradata Administrator Object Options Teradata Administrator can also be used to display object details. For example, right- click on the object (e.g., Department table) and a menu of options is displayed. In this example, the Indexes option was selected.
  • 5. Creating New Users and Databases Human_Resources Accounting DBC SYSDBA PR01 PR02 PR03 BF01 BF02 BF03 Personnel Benefits You can grant CREATE DATABASE authority to any user. The user may then create other users and databases from: • The user’s own space, or • The space of another user or database (if authorized).
  • 6. CREATE DATABASE Statement CREATE DATABASE database_name AS A CD FROM db_name , A PERMANENT = n PERM BYTES ; SPOOL = n TEMPORARY = n BYTES BYTES ACCOUNT = 'account_id' FALLBACK NO PROTECTION JOURNAL AFTER JOURNAL NO BEFORE NO DUAL DUAL LOCAL NOT LOCAL DEFAULT JOURNAL TABLE = table_name db_name.
  • 7. CREATE USER Statement CREATE USER name AS PERMANENT = n A FROM db_name PERM BYTES , , A PASSWORD = password NULL ; SPOOL = n TEMPORARY = n STARTUP = 'string;' BYTES BYTES ACCOUNT = 'account_id' FALLBACK ('acct_id', 'acct_id', …) NO PROTECTION DEFAULT DATABASE = db_name COLLATION = coll_seq DEFAULT CHARACTER SET = ch_dt JOURNAL AFTER JOURNAL NO BEFORE NO DUAL DUAL LOCAL NOT LOCAL DEFAULT JOURNAL TABLE = table_name DATEFORM = INTEGERDATE db_name. ANSIDATE NULL TIMEZONE = LOCAL DEFAULT ROLE = role_name PROFILE = profile_name quotestring NULL NULL sign NONE NULL ALL (V2R5.1)
  • 8. CREATE USER and the Data Dictionary EXPLAIN CREATE USER tfact06 AS PERM = 10e6, SPOOL = 100e6, PASSWORD = secure1time; Explanation 1) First, we lock data base tfact06 for exclusive use. 2) Next, we lock a distinct DBC."pseudo table" for write on a RowHash to prevent global deadlock for DBC.DataBaseSpace. 3) We lock a distinct DBC."pseudo table" for write on a RowHash to prevent global deadlock for DBC.AccessRights. 4) We lock a distinct DBC."pseudo table" for write on a RowHash to prevent global deadlock for DBC.Parents. 5) We lock a distinct DBC."pseudo table" for write on a RowHash to prevent global deadlock for DBC.Owners. 6) We lock DBC.DataBaseSpace for write, we lock DBC.AccessRights for write, we lock DBC.Parents for write, we lock DBC.Owners for write, we lock DBC.Accounts for write on a RowHash, we lock DBC.DBase for write on a RowHash, and we lock DBC.DBase for write on a RowHash. 7) We execute the following steps in parallel. 1) We do a single-AMP ABORT test from DBC.DBase by way of the unique primary index with no residual conditions. 2) We do a single-AMP ABORT test from DBC.Roles by way of the unique primary index with no residual conditions. 3) We do a single-AMP ABORT test from DBC.DBase by way of the unique primary index. 4) We do a single-AMP ABORT test from DBC.DBase by way of the unique primary index. 5) We do an INSERT into DBC.DBase. 6) We do a single-AMP UPDATE from DBC.DBase by way of the unique primary index with no residual conditions. 7) We do a single-AMP RETRIEVE step from DBC.Parents by way of the primary index with no residual conditions into Spool 1 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 1 by row hash. 8) We do an all-AMPs MERGE into DBC.Owners from Spool 1 (Last Use).
  • 9. CREATE USER and the Data Dictionary (cont.) 9) We execute the following steps in parallel. 1) We do an INSERT into DBC.Owners. 2) We do a single-AMP RETRIEVE step from DBC.Parents by way of the primary index with no residual conditions into Spool 2 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 2 by row hash. 10) We do an all-AMPs MERGE into DBC.Parents from Spool 2 (Last Use). 11) We execute the following steps in parallel. 1) We do an INSERT into DBC.Parents. 2) We do an INSERT into DBC.Accounts. 3) We do a single-AMP RETRIEVE step from DBC.AccessRights by way of the primary index into Spool 3 (all_amps), which is redistributed by hash code to all AMPs. 12) We execute the following steps in parallel. 1) We do a single-AMP RETRIEVE step from DBC.AccessRights by way of the primary index into Spool 3 (all_amps), which is redistributed by hash code to all AMPs. 2) We do an all-AMPs RETRIEVE step from DBC.AccessRights by way of an all-rows scan into Spool 4 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 4 by row hash. 13) We do an all-AMPs JOIN step from DBC.Owners by way of a RowHash match scan, which is joined to Spool 4 (Last Use). DBC.Owners and Spool 4 are joined using a merge join. The result goes into Spool 3 (all_amps), which is redistributed by hash code to all AMPs. Then we do a SORT to order Spool 3 by row hash. 14) We do an all-AMPs MERGE into DBC.AccessRights from Spool 3 (Last Use). 15) We flush the DISKSPACE and AMPUSAGE caches. 16) We do an all-AMPs ABORT test from DBC.DataBaseSpace by way of the unique primary index. 17) We do an INSERT into DBC.DataBaseSpace. 18) We do an all-AMPs UPDATE from DBC.DataBaseSpace by way of the unique primary index with no residual conditions. 19) We flush the DISKSPACE and AMPUSAGE caches. 20) We spoil the parser's dictionary cache for the database. 21) Finally, we send out an END TRANSACTION step to all AMPs involved in processing the request. -> No rows are returned to the user as the result of statement 1.
  • 10. MODIFY USER Statement , MODIFY USER name AS ; PASSWORD = pwd RELEASE PASSWORD LOCK STARTUP = NULL NULL FOR USER 'string;' PERMANENT = n SPOOL = n TEMPORARY = n PERM BYTES BYTES BYTES ACCOUNT = 'account_id' FALLBACK COLLATION = coll_seq ('acct_id', 'acct_id', …) NO PROTECTION DEFAULT DATABASE = db_name DEFAULT CHARACTER SET = character_data_type DATEFORM = INTEGERDATE JOURNAL AFTER JOURNAL ANSIDATE NO BEFORE NO NULL DUAL DUAL LOCAL NOT LOCAL DEFAULT JOURNAL TABLE = table_name DROP DEFAULT JOURNAL TABLE db_name. =table_name TIMEZONE = LOCAL DEFAULT ROLE = role_name PROFILE = profile_name quotestring NULL NULL sign NONE NULL ALL (V2R5.1)
  • 11. Teradata Administrator Tools Menu Options Teradata Administrator can be used to create and manage users and databases. Tools menu • Selections to create and modify databases and uses, grant/revoke access rights, and send ad hoc query requests to Teradata RDBMS. • Options include the ability to clone a user, move space, and set preferences. • This example illustrates how to create a database by completing the entries.
  • 12. Teradata Administrator GRANT/REVOKE Rights • Select the object name and object type. • Select who is going to get the right. • Select the rights. Teradata Administrator can be used to easily grant or revoke access rights. Tools Î Grant/Revoke Î Object Rights
  • 13. Teradata Administrator Rights on DB/User Right-click on the database AU and select the option. In this example, Rights on DB/User was selected. Teradata Administrator can also be used to easily view existing access rights