颈动脉斑块吃什么药效果最好| 女生喜欢什么姿势| 同人小说是什么| 老汉推车是什么意思| 缓解是什么意思| 什么是癔症| 口腔溃疡是什么引起的| 嘴唇是紫色的是什么原因| 咸鱼翻身是什么意思| 凯撒是什么意思| 梦到老房子是什么意思| 空调滴水是什么原因| 什么样的人容易得结石| 9月份是什么星座的| 蝙蝠飞进家里预示什么| 原生家庭是什么意思| 无病呻吟是什么意思| 热狗是什么| 贵气是什么意思| 快穿是什么意思| 虾肚子上的黑线是什么| 嘴巴苦是什么原因| twin什么意思| 头皮屑是什么东西| 什么什么不生| 波尔多红是什么颜色| 吃饭是什么意思| 蚊子怕什么| 胃绞痛吃什么药| 循证是什么意思| 小鹦鹉吃什么| 1.29是什么星座| 媒婆是什么意思| 50岁用什么牌子化妆品好| 风雨交加是什么生肖| 手心脚心热吃什么药| lily是什么牌子| 妇科炎症用什么药最好| 柏油样便见于什么病| 脸上长水泡似的痘痘是什么原因| 印堂在什么位置| 邓字五行属什么| 病毒性肺炎吃什么药| 荞头是什么| ha是什么意思| 安慰的意思是什么| 黑色记号笔用什么能擦掉| 月柱代表什么| 终而复始什么意思| 眼疲劳用什么眼药水| 宝宝干咳吃什么药| 什么察秋毫| 八月初十是什么星座| 86年属什么的生肖| 沙发是什么发质| 业火是什么意思| 肚子长痘痘是什么原因| 唐三藏的真名叫什么| 怀孕吃什么水果| 什么是舌吻| 出殡是什么意思| 和什么细什么的成语| 什么屁股摸不得| 青蛙像什么| 咽炎吃什么药最管用| 什么样的大山| 鸩杀是什么意思| 女性尿频繁是什么原因| 董酒是什么香型| 骨龄挂什么科| 肌红蛋白高说明什么| 敏感的反义词是什么| 红果是什么| 刚愎自用代表什么生肖| 口真念什么| 色丁布是什么面料| 佛珠断了有什么预兆| la是什么牌子| 备皮什么意思| 梦见黑山羊是什么预兆| 喜欢一个人是什么感觉| 很low是什么意思| 照字五行属什么| 回家心切什么意思| 全科门诊主要看什么| 肠炎有什么症状表现| 流鼻血什么原因| 腮腺炎吃什么药好得快| 属牛和什么属相相冲| 手串18颗代表什么意思| 甲状腺斑块是什么意思| 桥本甲状腺炎有什么症状| 地是什么生肖| 染发有什么危害| 甘油三酯偏高说明什么问题| 痰盂是什么意思| 粪便隐血试验弱阳性是什么意思| 胎盘吃了对身体有什么好处| 乳腺彩超什么时候做最准确| 1970年五行属什么| 激素六项是查什么的| 两个月没有来月经了是什么原因| 壮阳是什么意思| 6月26什么星座| 很多条腿的虫子叫什么| 急性肠胃炎用什么药| 小孩肚子疼吃什么药| 甘油三酯什么意思| 南宁有什么好玩的地方| 殿试第一名叫什么| 小孩睡觉出很多汗是什么原因| 女人脸肿是什么原因引起的| 梦见别人生孩子预示什么| 土字旁的字与什么有关| 蜘蛛侠叫什么名字| d3是什么| 脸上起红疙瘩是什么原因| 老有痰是什么原因| 母亲节送妈妈什么礼物好| 杭州灵隐寺求什么最灵| 为什么身上会起小红点| 25周岁属什么生肖| 压马路什么意思| 哥哥的孩子叫什么| in77是什么意思| ubc是什么意思| 滞留是什么意思| 公顷是什么意思| 嗓子不舒服做什么检查| 早上打喷嚏是什么预兆| 胎膜早破是什么症状| 多囊为什么要跳绳而不是跑步| 猫咪来家里是什么寓意| 感冒吃什么水果好| 什么血型和什么血型不能生孩子| 母亲节送给妈妈什么礼物好| 多普勒超声检查是什么| 发配是什么意思| 假性近视是什么意思| 猫对什么颜色感兴趣| 前列腺炎需要做什么检查| e站是什么| 肝主筋的筋是指什么| 未见明显胚芽是什么意思| 为什么掉发严重| 中暑是什么症状表现| 1月9日什么星座| 车牌颜色代表什么| 上证指数是什么意思| 卵泡期是什么时候| 张钧甯为什么读mi| 18岁是什么生肖| 鱼腥草泡水喝有什么功效| 谷旦是什么意思| 锡字五行属什么| 宽字五行属什么| 什么是先兆流产| 儿童乘坐飞机需要什么证件| 补气吃什么食物| 跑步后脸红是什么原因| 验尿能检查出什么| 天台是什么意思| 切除胆囊有什么影响| 腹膜后是什么位置| 清纯是什么意思| bowdor是什么牌子的手表| 诛仙讲的是什么故事| 什么清什么白| 光绪是慈禧的什么人| 众所周知是什么生肖| 大圣归来2什么时候上映| 保卡是什么意思| 蘑菇炒什么好吃| 四个月宝宝可以吃什么辅食| 有什么瓜| honor是什么牌子手机| 海棠花的花语是什么| 菌丝是什么| 孕妇吃什么血糖降得快| 此地无银三百两是什么意思| aml是什么意思| 吩咐是什么意思| 吃什么快速排便| 痔疮是什么样子的| 药食同源是什么意思| 八月三日是什么星座| 人为什么会便秘| 甲骨文是写在什么上面的| 上什么环最好最安全伤害小| 乙亥日五行属什么| 碳酸钙是什么东西| 长期失眠吃什么食物好| 吃什么东西能流产| 眼皮跳是什么原因引起的| 茯砖茶是什么茶| 肾结石是什么原因导致的| 血管瘤是什么病| o型血容易得什么病| 汕是什么意思| 处女座和什么座最配对| 血沉是查什么病的| 腌肉用什么淀粉| 为什么低血压| 贫血吃什么补血好| 嗨体是什么| 白果是什么东西| 晚上睡觉手麻是什么原因| 什么炒肉| 吃木瓜有什么好处| 为什么会拉黑屎| 黄芪味道是什么味道| 胎心胎芽最晚什么时候出现| ck医学上是什么意思| 霸屏是什么意思| 女大七岁有什么说法| 孩子咳嗽能吃什么水果| 什么是低烧| 10.16是什么星座| 101什么意思| 黄明胶是什么| 一什么鱼塘| 减肥能吃什么水果| 为什么全麻手术后不能睡觉| 产妇喝什么汤下奶最快最多| 狗狗有什么品种| 鸭肉和什么不能一起吃| 孕妇胆固醇高对胎儿有什么影响| 地钱是什么植物| 后背一推就出痧是什么原因| 左手抖动是什么原因| 异口同声是什么意思| futa是什么意思| 抑郁症为什么会想死| 补牙为什么要分三次| 为什么会流鼻血什么原因引起的| 日成是什么字| 又字加一笔是什么字| 尿毒症有什么症状| 马牛羊鸡犬豕中的豕指的是什么| 丑是什么库| 异国他乡的异是什么意思| 孕妇早餐吃什么| 美帝是什么意思| 丈二和尚摸不着头脑是什么意思| 什么笑组词| 5年存活率是什么意思| ak是什么意思| 修女是干什么的| wonderflower是什么牌子| 情未了什么意思| 经常流鼻血是什么原因| 去海边穿什么衣服拍照好看| 减肥能喝什么饮料| 逆熵是什么意思| 姓毛的男孩取什么名字好| 焦虑症吃什么药效果好| 神经酸是什么| 血小板有什么作用| 1936年是什么年| 凌波仙子指的是什么花| 95511是什么号码| 丝鸟读什么| 浸洗是什么意思| 大姨妈来的少是什么原因| 百度
Jump to content

PL/SQL Challenge 每日一题:2017-1-18 嵌套游标

From ArchWiki

Because the vast majority of the ArchWiki contains indications that may need clarification for users new to Arch Linux (or GNU/Linux in general), this rundown of basic procedures was written both to avoid confusion in the assimilation of the articles and to deter repetition in the content itself.

Organization

Most articles on the ArchWiki do not attempt to provide a holistic introduction to a single topic; they are instead written in adherence to the DRY principle, under the assumption that the user will seek out and read any supporting material that they do not yet understand. Where possible, such supporting material is indicated in the article via special formatting, see #Formatting.

Because of this organization, it may be necessary to examine several related sources in order to fully understand an ArchWiki article. In particular, users who are new to Arch (or GNU/Linux in general) should expect to end up reading a great number of articles even when solving simple problems. It is especially important to study the supporting material before seeking additional help from other users.

Formatting

Regular user or root

Some lines are written like so:

# mkinitcpio -p linux

Others have a different prefix:

$ makepkg -s

The numeral or hash sign (#) indicates that the command needs to be run as root, whereas the dollar sign ($) shows that the command should be run as a regular user.

Note The commands prefixed with # are intended to be executed from a root shell, which can for example be easily accessed with sudo -i. Running sudo command from an unprivileged shell instead of command from a root shell will also work in most cases, with some notable exceptions such as redirection and command substitution, which strictly require a root shell. See also sudo.

A notable exception to watch out for:

# This alias makes ls colorize the listing
alias ls='ls --color=auto'

In this example, the context surrounding the numeral sign communicates that this is not to be run as a command; it should be edited into a file instead. So in this case, the numeral sign denotes a comment. A comment can be explanatory text that will not be interpreted by the associated program. Bash scripts denotation for comments happens to coincide with the root PS1.

After further examination, "give away" signs include the uppercase character following the # sign. Usually, Unix commands are not written this way and most of the time they are short abbreviations instead of full-blown English words (e.g., Copy becomes cp).

Regardless, most articles make this easy to discern by notifying the reader:

Append to ~/path/to/file:

# This alias makes ls colorize the listing
alias ls='ls --color=auto'

Append, add, create, edit

When prompted to append to, add to, create, or edit one or more files, it is implied that you should use one of the following methods.

To create or modify multiline files, it is suggested to use a text editor. For example, using the nano command to edit the file /etc/bash.bashrc is:

# nano /etc/bash.bashrc

To create or overwrite a file from a string, it may be simpler to use output redirection. The following example creates or overwrites the contents of the file /etc/hostname with the text myhostname.

# echo myhostname > /etc/hostname

Output redirection can also be used to append a string to a file. The following example appends the text [custom-repo] to the file /etc/pacman.conf.

# echo "[custom-repo]" >> /etc/pacman.conf

When prompted to create directories, use the mkdir command:

# mkdir /mnt/boot

Make executable

After creating a file, if it is meant to be run as a script (whether manually or called by another program), it needs to be set as executable, for example with:

$ chmod +x script

See chmod. Some applications such as file managers may provide graphical interfaces to do the same.

Source

Some applications, notably command-line shells, use scripts for their configuration: after modifying them, they must be sourced in order for the changes to be applied. In the case of bash, for example, this is done by running (you can also replace source with .):

$ source ~/.bashrc

When the wiki suggests modifying such a configuration script, it will not explicitly remind you to source the file, and only in some cases will it point to this section with a reminder link.

Installation of packages

When an article invites you to install some packages in the conventional way, it will not indicate the detailed instructions to do so; instead, it will simply mention the names of the packages to be installed.

Note Frequently, the install or installed links are used to point to this article section. However, JavaScript has to be enabled for these links to work.

The subsections below give an overview of the generic installation procedures depending on the package type.

Official packages

For packages from the official repositories, you will read something like:

Install the foobar package.

This means that you have to run:

# pacman -S foobar

The pacman article contains detailed explanations to deal with package management in Arch Linux proficiently.

Arch User Repository

For packages from the Arch User Repository (AUR), you will read something like:

Install the foobarAUR package.

This means that in general you have to follow the foobarAUR link, download the PKGBUILD archive, extract it, verify the content and finally run, in the same folder:

$ makepkg -si
Note The base-devel group of packages is required to build packages from the AUR or with the ABS.

The Arch User Repository article contains all the detailed explanations and best practices to deal with AUR packages.

Control of systemd units

When an article invites to start, enable, stop or restart some systemd units (e.g. a service), it will not indicate the detailed instructions to do so, but instead you will read something like:

Start example.service.

This means that you have to run:

# systemctl start example.service

The systemd article contains all the detailed explanations to deal with systemd units in Arch Linux proficiently.

System-wide versus user-specific configuration

It is important to remember that there are two different kinds of configurations on a GNU/Linux system. System-wide configuration affects all users. Since system-wide settings are generally located in the /etc directory, root privileges are required in order to alter them. For example, to apply a Bash setting that affects all users, /etc/bash.bashrc should be modified.

User-specific configuration affects only a single user. Dotfiles are used for user-specific configuration. For example, the file ~/.bashrc is the user-specific configuration file. The idea is that each user can define their own settings, such as aliases, functions and other interactive features like the prompt, without affecting other users' preferences.

Note ~/ and $HOME are shortcuts for the user's home directory, usually /home/username/.

Common shell files

Bash and other Bourne-compatible shells, such as Zsh, also source files depending on whether the shell is a login shell or an interactive shell. See Bash#Configuration files and Zsh#Startup/Shutdown files for details.

Pseudo-variables in code examples

Some code blocks may contain so-called pseudo-variables, which, as the name says, are not actual variables used in the code. Instead they are generic placeholders and have to be manually replaced with system-specific configuration items before the code may be run or parsed. Common shells such as bash and zsh provide tab-completion to auto-complete parameters for common commands such as systemctl.

In the articles that comply with Help:Style/Formatting and punctuation, pseudo-variables are formatted in italics. For example:

  • Enable the dhcpcd@interface_name.service for the network interface identified from the output of the ip link command.

In this case interface_name is used as a pseudo-variable placeholder in a systemd template unit. All systemd template units, identifiable by the @ sign, require a system-specific configuration item as argument. See Systemd#Using units.

  • The command dd if=data_source of=/dev/sdX bs=sector_size count=sector_number seek=partitions_start_sector can be run as root to wipe a partition with the specific parameters.

In this case the pseudo-variables are used to describe the parameters that must be substituted for them. Details on how to gather them are elaborated on in the section Securely wipe disk#Calculate blocks to wipe manually, which features the command.

This article or section needs expansion.

Reason: Mention other examples, ideally from other device categories (e.g. storage), with links to background articles. The examples are meant to avoid duplicating existing explanations in other articles. (Discuss in Help talk:Reading)

In case of file examples, pasting pseudo-variables in real configuration files might break the programs that use them.

Ellipses

In most cases, ellipses (...) are not part of the actual file content or code output, and instead represent omitted or optional text that is not relevant for the discussed subject.

For example HOOKS="... encrypt ... filesystems ..." or:

/etc/X11/xorg.conf.d/50-synaptics.conf
Section "InputClass"
    ...
    Option      "CircularScrolling"          "on"
    Option      "CircScrollTrigger"          "0"
    ...
EndSection

Be aware though that, in a few instances, ellipses may be a meaningful part of the code syntax: attentive users will be able to easily recognize these cases by the context.

妇科千金片主要治什么 海明威为什么自杀 酷盖是什么意思 肾阳虚吃什么中药 少一颗牙齿有什么影响
早上吃玉米有什么好处 软化血管吃什么药最好 喝什么茶可以降血脂 糖尿病人不能吃什么 正骨有什么好处和坏处
违和是什么意思 小孩查微量元素挂什么科 节制的意思是什么 马加其念什么 95年的猪是什么命
海螺吃什么 西藏有什么大学 爷爷的兄弟叫什么 什么是棱长 75年属什么
汾酒属于什么香型hcv7jop9ns2r.cn 什么是淋病hcv7jop7ns1r.cn 检查头部挂什么科室hcv8jop8ns2r.cn 进门见什么好hcv8jop8ns8r.cn 什么是皮炎hcv9jop1ns4r.cn
24度穿什么衣服合适hcv7jop4ns5r.cn 丈夫早亡的女人什么命hcv8jop8ns4r.cn 金是什么生肖0735v.com 牙齿发麻是什么原因hcv9jop2ns7r.cn 今日立冬吃什么hcv8jop7ns5r.cn
棉花是什么时候传入中国的hcv7jop6ns7r.cn nk细胞是什么hcv9jop7ns0r.cn 金刚钻是什么意思hcv7jop5ns3r.cn 芦荟有什么功效hcv8jop7ns8r.cn 咽喉炎用什么药cl108k.com
鸡爪烧什么好吃hcv9jop3ns3r.cn 糗大了是什么意思hcv9jop8ns3r.cn 来日方长是什么意思hcv7jop7ns3r.cn 玉五行属什么hcv7jop5ns4r.cn 阑尾有什么用hcv8jop6ns0r.cn
百度